K
K
Kalwin UA2020-11-14 14:53:27
MODX
Kalwin UA, 2020-11-14 14:53:27

How to display the number of pages according to the template or are there other options?

Closer to the point, there is a menu with a total number of documents. 5fafc3cd57fd9036353971.png
And the code for it:


Accordingly, when I add the parameter: &templates=`7` . I only display documents according to the pattern "7", and not the number.
5fafc50b3cdef712940446.png
Why does it do this? How to output correctly (in my case)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2020-11-14
@DanArst

Why does it do this? How to output correctly (in my case)?

Because you have to read the documentation . Templates is a template selection filter, i.e. pages that use the template with id=7 are displayed.
If you need to display children and their number, then add parents and countChildren

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question