C
C
cjkfdt2017-04-04 21:06:22
MODX
cjkfdt, 2017-04-04 21:06:22

How to make output of child resources excluding parent output?

Hello. The resource structure is as follows: there is a parent with id (20), which has 3 child elements with id (21, 22, 23), each of which has an unlimited amount of resources. I extract resources like this:


Resources with id 21,22,23 should not be displayed, i.e. Now I have registered the ban manually, but how can I make them not automatically displayed themselves? The option with "not published" will not work. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2017-04-04
@cjkfdt

&hideContainers=`1`

R
Ruslan, 2017-04-05
@ruslan_aleev

Hello, you can also use where, specifying the template id for the resource only (if it is different from the parent template), for example:
&where=`{"template":"5"}`, where 5 is the template id for the resource

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question