`How to display these elements through pdoMenu in Modx?
E
E
eugene1592020-06-13 01:38:04
MODX
eugene159, 2020-06-13 01:38:04

How to display these elements through pdoMenu in Modx?

There is this code:

[[pdoMenu?
   &tplOuter=`@INLINE <ul class="footer__nav">[[+wrapper]]</ul>`
   &parents=`0`
   &level=`2`
   &resources=`331,335`
   &showHidden=`1`
   &tpl=`bottomMenuItem`
]]

And it outputs only 1 element. This is because 335 is a child of 331. How can I make it output two items? What if 335 wasn't a child?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
I
Igor, 2020-06-18
@ig0r74

Either create a resource of type "Link" at the same level as 331, or output using pdoResources (if the menu is single-level) and specify &sortby=``

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question