X
X
ximik2022-03-25 10:42:40
MODX
ximik, 2022-03-25 10:42:40

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

1 answer(s)
A
Anton Tarasov, 2022-03-25
@ximik

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 question

Ask a Question

731 491 924 answers to any question