简体   繁体   English

将“当前” ID添加到joomla 1.7的“两个不同”菜单中的两个“不同”项中

[英]Add the “current” id to two differents items in two differents menu in joomla 1.7

I have an article (with the id=6) on joomla 1.7 我在joomla 1.7上有一篇文章(id = 6)

I have the main menu. 我有主菜单。 In that menu, I created the item that show me only one article, the article with the id=6. 在该菜单中,我创建了仅显示一篇文章(id = 6的文章)的项目。

I have a secondary menu, that have 3 differents items. 我有一个二级菜单,其中有3个不同的项目。 One of them, I have to link it to the same article with the id=6. 其中之一,我必须将其链接到id = 6的同一文章。

The problem is, that I need to add the "current" id to the item at the main menu, and in the item of the secondary menu, because both are links to the same article, so I have to highlight them. 问题是,我需要在主菜单和辅助菜单的项目中添加“当前” ID,因为两者都是指向同一文章的链接,所以我必须突出显示它们。

By default, the system add me the current id to one item only when I click on that item, and doesn't when I show the same article that the item links. 默认情况下,只有当我单击某个项目时,系统才会将我的当前ID添加到该项目,而当我显示该项目链接的同一文章时,则不会添加。

Any help? 有什么帮助吗? thank you. 谢谢。

What happens if you change the second menu item to the type of 'Alias' and select the original menu item in the right hand side options? 如果将第二个菜单项更改为“别名”类型,然后在右侧选项中选择原始菜单项,会发生什么情况?

Now instead of having two menu items with different internal menu ItemIds you have two items with the same ItemId. 现在,不再有两个菜单项具有不同的内部菜单项ID,而是使两个项具有相同的ItemId。 As long as your css is correct they should both be highlighted (or should that be highlit?). 只要您的CSS是正确的,它们都应该都突出显示(或者应该突出显示?)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM