R
R
RushV2019-09-02 11:42:03
MODX
RushV, 2019-09-02 11:42:03

How to display parent resources on the page in ModX?

Hello!
How can I display documents from the parent using pdoTools ?

[[pdoResources?
                    &parents=`510872`
                    &top=`1`
                    &depth=`2`
                    &level=`1`
                    &tpl=`ListRowTpl`
                    &includeTVs=`img-product`
                ]]

Tried like this, it doesn't work.
5d6cd5275dfd0516136232.jpeg
If I go to the "Kitchens" page, for example, then only kitchens, etc., should appear.
Is it possible to implement something like this through pdo tools?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
Dmitry, 2019-09-02
@i__dmitry

&parents=`510872`
If the call is made not in the output template of another snippet (but simply in a chunk, template, on the page), then you need to output through the "asterisk":
&parents=`2`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question