[[+content_image]]
S
S
Skazhikadyadya2019-08-12 16:55:31
MODX
Skazhikadyadya, 2019-08-12 16:55:31

The class of the current parent menu item in pdoMenu?

Good afternoon. Faced a problem: I have a view navigation:

[[pdoMenu?
    &parents =`0`
    &level =`1`
    &hereClass = `w--current`  
    &innerClass = `w--current` 
    &rowClass = `nav-link w-nav-link`
    &tplOuter = `@INLINE [[+wrapper]]`
    &tpl = `@INLINE<a href="[[+link]]" [[+classes]] [[+attributes]]>[[+menutitle]]</a>`
]]

As a result, when I am at the first level of the document, the w--current class is substituted in the menu. I want to understand how I can make it so that if I select a nested document, then the w--current class is still saved in the parent menu. How can I do that?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question