A
A
Alexander Ivanov2016-05-17 11:26:04
MODX
Alexander Ivanov, 2016-05-17 11:26:04

How to add class to parent ul in pdomenu?

ul.
-li
-li
--ul.need_class_here
---li.and_this_class_shouldn't_be_here
pdoMenu

&level=`2` 
              &parents=`3`
              &outerClass=`list-service`
              &levelClass=`level`
              &parentClass=`drop-list`
              &tplOuter=`@INLINE <ul></ul>`
              &tpl=`@INLINE <li><i class="sprite sprite-tovar-plus"></i><a href="" ></a></li>`
              &parentClass=`parentClass`
              &rowClass=`rowClass`
              &outerClas=`outerClas`
              &innerClass=`innerClass`

at the exit
ul.
-li
-li
--ul.innerClass
---li.innerClass_and_others
if innerClass wasn't substituted for would everything be fine
Why do I need this -
codepen.io/alexmachado/pen/uflgE

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
display: block, 2016-05-17
@cimonlebedev

Specify the tpl template


Another option:
codepen.io/anon/pen/GZamXB

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question