A
A
Alexey Ivanov2019-03-26 13:16:49
MODX
Alexey Ivanov, 2019-03-26 13:16:49

How to display menu on modx?

Good afternoon.
I display the menu using pdoMenu.
5c99fa8f6312e900992024.png
Here's my snippet for checking the page id:
5c99fabe9a967402099762.png
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.
5c99fa2bae3a5014860563.png
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)
5c99fbbd7a77b843971282.png
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

1 answer(s)
A
Anton Tarasov, 2019-03-26
@an-tar

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 question

Ask a Question

731 491 924 answers to any question