A
A
Alexander Ivanov2015-11-30 11:18:15
MODX
Alexander Ivanov, 2015-11-30 11:18:15

How to remove the output of a resource in GetPage if it contains children?

Let's say the structure is:
catalog ->
category ->
subcategory ->
product
product
subcategory ->
product
product
category ->
subcategory ->
product
product
subcategory ->
product
product
So I call getPage:


        <!--40,45,48-->
        <ul class="pagination"></ul>

In the catalog link, it displays as follows:
category
subcategory
product
product
subcategory
product
product
category
subcategory
product
product
subcategory
product
product
How to make it so:
product
product
product
product
product
product
product
product

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan, 2015-11-30
@cimonlebedev

Try filtering by template (I understand that products have their own template):

S
Sanes, 2015-11-30
@Sanes

&where=`{isfolder:0}`
Something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question