Answer the question
In order to leave comments, you need to log in
How to display menu on modx?
Good afternoon.
I display the menu using pdoMenu.
Here's my snippet for checking the page id:
Everything is displayed correctly, but I can't underline the active element.
Here are the anchors. On this screen, everything is normal, it was emphasized, but if you hover over the "apartments", then the first element is also underlined there (there are no longer anchors, but links). "Benefits" should be underlined if I'm on the "bristol" page.
They should be active if I am on these pages. The last two elements are defined correctly, but the first one is not (it's a link, not an anchor)
How to make active pages underline, and if in the anchor submenu, then underline the first element?
Answer the question
In order to leave comments, you need to log in
I do not see the use of chunks specially designed to highlight the active item:
&tplHere
&tplParentRowHere
&tplParentRowActive
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question