Answer the question
In order to leave comments, you need to log in
How to set a class for a block in pdomenu, provided that it has children?
Hello! Tell me please! Completely broke his head. Nowhere did I find information on pdomenu for modx revo.
How to set the class "has-sub" for the menu item block, only for those that have children. For those who do not have descendants, this class should not be inserted.
Already tried &hereClass=`has-sub`, &innerClass=`has-sub` etc.
But it doesn't work.
Sample structure.
--- Insert has-sub here because it has descendants
Item1
Office
Production
Advantages
--- No has-sub inserted here, no descendants
Item2
--- No has-sub inserted here, no descendants
Item3
Answer the question
In order to leave comments, you need to log in
Try to explicitly specify the class in the chunk specified in the `tplParentRow` parameter, this is just for the item with descendants
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question