F
F
Froggyweb2017-06-19 20:33:01
MODX
Froggyweb, 2017-06-19 20:33:01

Nested call to pdomenu?

Good afternoon. There is a flat one-level main menu of the site. But one level directory should be displayed with nested resources. Is there a way in pdomenu to define a template or id or something else that will help to make a pdomenu call with other parameters. Ie in the chunk to track which resource is being processed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan, 2017-06-20
@Froggyweb

Hello, pdoMenu has a &tplParentRow template for nested menu rows, i.e. prescribe a different output template for such lines, indicating, for example, another class. If the menu is completely non-standard, then in the &tplParentRow template, you can write another pdoMenu call, specifying &parents=`578566` .
For more information about parameters see here - https://docs.modx.pro/components/pdotools/snippets...

Z
zooks, 2017-06-20
@zooks

The nested call for pdoResources and pdoMenu is not needed (moreover, it will be buggy).
Everything is done through the pdoMenu settings, as described above.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question