`How to display condition in pdoMenu?
A
A
Alex2016-04-12 14:23:50
MODX
Alex, 2016-04-12 14:23:50

How to display condition in pdoMenu?

Hello, actually there is

[[pdoMenu?
&parents=`2`
&tplOuter=`@INLINE <ul class="submenu_footer">[[+wrapper]]</ul>`
&tpl=`@INLINE <li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]] / </li>`
]]

this should be output from the current resource
and this
[[pdoMenu?
&parents=`0>`
&tplOuter=`@INLINE <ul class="submenu_footer">[[+wrapper]]</ul>`
&tpl=`@INLINE <li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]] / </li>`
]]

on nested-thank you

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Sergey, 2016-04-12
@astrodeep

The easiest way to make different templates, but if the structure is two-level, you can also do this
&parents=`2`] ]`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question