N
N
Nikolai Dobrynin2019-07-18 00:11:50
MODX
Nikolai Dobrynin, 2019-07-18 00:11:50

How to assign active class to parent menu item when child resource in pdoMenu is active?

Good afternoon, gentlemen, I'm displaying pdoMenu on modXRevo and I ran into this question, how to assign the class of the active menu item to the parent element when the child is active?
Here is the menu, maybe I just forgot to specify something? the documentation could not help, I humbly ask for help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-07-21
@i__dmitry

pdoMenu assigns the class "active" to all parent elements by default (default) if the child is active. Here is an example from one of the sites:
You needlessly specify the "active" class in the output templates, there are special CSS class parameters for this, see the documentation:
https://docs.modx.pro/komponentyi/pdotools/snippet...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question