Home computickets MODX PDOMENU How to display only the first level?

MODX PDOMENU How to display only the first level?

Author

Date

Category

Menu structure Such:

- document without nesting
- Document without nesting
- Document with 1-level nestedness
- Device
- Document with 1-level nestedness
- Device
- Document with 1-level nestedness
- Device
- Device

Naturally, the number of documents with nestedness and without unknown.

I need to withdraw all items of the first level menu, even those who do not have nested

pdomenu I use, but probably he can’t do it,
& amp; where = {isfolder = 1} is not suitable, since then the output will be carried out only by parents who have nesting, but for which you do not have it, and not the output.

Does this pdoresources or how to be in such a situation?

[[! Pdomenu?
& amp; parents = `-1`
& amp; Level = `1`
& amp; limit = `6`
& amp; tplouter = `bottommenutplouter`
& amp; TPL = `BottomMenutpl`
]]

Answer 1

It turned out to do this:

[[! Pdomenu?
& amp; parents = `-1`
& amp; displayStart = `1`
& amp; Level = `1`
& amp; tplouter = `bottommenutplouter`
& amp; TPL = `BottomMenutpl`
]]

If it is not quite true, please explain

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions