0

I have 3 menu positions. Each one is a sub level of the other.

If a user clicks a top level menu the clicked item is shown as active. This is good.

But if the user clicks on a sub item, it only shows the sub item as active (and not the parent item under which it comes). Here's my problem...

I want to show the parent item as active along with the selected sub item. Is this possible?

Thanks!

4

2 回答 2

0

使用current类而不是active类。

于 2013-04-18T12:36:46.280 回答
0

是的,这是可能的,甚至是默认的 Joomla 行为。

听起来您的子菜单项是“菜单项别名”、“外部 URL”或等效类型的实例,指向不同的菜单项,该菜单项可能属于不同的(和隐藏的)菜单。

即使浏览您的子菜单,最终的目标菜单项也绝对不是您父菜单的子菜单,因此 Joomla 不能将其视为“活动”。

据我所知,如果您希望浏览子菜单项将其父项显示为活动状态,则必须使它们实际上是父项和子项。

它解决了你的问题吗?

于 2014-12-11T14:17:51.023 回答