A
A
Alex Malagor2018-08-21 13:24:48
MODX
Alex Malagor, 2018-08-21 13:24:48

How to display child menu items in pdomenu using &resources?

There is a call where I want to display only certain pages (footer menu). In &resources I specify the IDs of these pages, with 1,2,3 being the first level, and 20 being a descendant of the 4th page. Moreover, I don’t need to display 4, but I need exactly 20. Here is what I write:

As a result, 1,2,3 are displayed, and 20 is not displayed at all.
I set different &level, it still doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2018-08-21
@an-tar

20th - not hidden, published, not deleted, not encumbered with rights, right? I was definitely looking for the same output method, and I definitely decided, but I can’t find how right now.
And try to play like this:
1. First, enable a non-cached call, when everything works, remove [[!pdoMenu?
2. level is zero, which means there is no restriction, leave it as it is.
3. you can play with as an option &where=`{"template=":"2"}`, if the 20th has its own template, this also sometimes helps. Or in the forehead &where=`{"id:IN=":"[1,2,3,20]"}`
4.&parents=`20,0`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question