添加“当前” joomla 1.7 中两个不同菜单中的两个不同项目的 id

发布于 2024-12-17 04:45:44 字数 289 浏览 2 评论 0原文

我有一篇关于 joomla 1.7 的文章(id=6)

我有主菜单。在该菜单中,我创建了仅显示一篇文章的项目,即 id=6 的文章。

我有一个二级菜单,有 3 个不同的项目。其中之一,我必须将其链接到 id=6 的同一篇文章。

问题是,我需要将“当前”id 添加到主菜单的项目和二级菜单的项目中,因为两者都是指向同一篇文章的链接,所以我必须突出显示它们。

默认情况下,系统仅当我单击该项目时才将当前 ID 添加到该项目,而当我显示该项目链接的同一篇文章时则不会。

有什么帮助吗?谢谢。

I have an article (with the id=6) on joomla 1.7

I have the main menu. In that menu, I created the item that show me only one article, the article with the id=6.

I have a secondary menu, that have 3 differents items. One of them, I have to link it to the same article with the 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.

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.

Any help? thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只涨不跌 2024-12-24 04:45:44

如果将第二个菜单项更改为“别名”类型并在右侧选项中选择原始菜单项,会发生什么情况?

现在,两个菜单项不再具有不同的内部菜单 ItemId,而是具有两个具有相同 ItemId 的项目。只要您的 css 正确,它们就应该突出显示(或者应该突出显示?)。

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. As long as your css is correct they should both be highlighted (or should that be highlit?).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文