开发者

joomla how to create a custom link

I have set mod_rewrite in joomla so I can use link like http://www.mysite.com/home, http://www.mysite.com/contact where home and contact are link开发者_StackOverflow社区 aliases. All of this link are part of menu, but I'm intersted in create link that will be never displayed in any menu, how can do that?


There are a couple ways it can be done. The quick and easy way is to make a hidden menu just for creating links. Simply create a new menu and don't put it in a module. You can add all the menu items you want without having to display them anywhere and you get nice clean URLs.

You can also get the URL of an article that does not have a menu item, but it gets pretty long to use. The URL of an article will be something like -

domain.com/parent menu item alias/item alias.html

It will use the alias from what ever menu item it is inheriting the itemID from az part of the URL. I generally use the first method to avoid the long URLs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜