今天在Joomla中,怎么都是两个菜单项显示同样的内容。检查了几遍,都集中在了是否选中了相应的catagory,结果没有改变。很偶然地发现,其中一个菜单项的alias写成了与另外一样的,结果两个菜单项显示了同样的内容。
在Joomla中,无论是创建Section,Catagory还是Article,系统都会给你提供添加Alias的选择。当然,你也可以忽略这一步。但是系统却会为你自动创建一个alias的,如果你的title是英文的话,那么alias也会是title的名字;如果是中文的话,则自动生成一个id。
上述分析不知道对否,如有高人,不吝赐教。
15:29:21 再谈一下Alisa
Alias. The internal name of the item. Normally, you can leave this blank and Joomla! will fill in a default value. The default value is the Title or Name in lower case and with dashes instead of spaces. You may enter the Alias manually. The Alias should consist of lowercase letters, and no blank spaces are allowed. Use a hyphen (-) instead. The Alias will be used in the URL when SEF is activated.
上面的文字是Joomla帮助文档中对Alias的描述。