A
A
axblue2016-06-22 00:01:04
MODX
axblue, 2016-06-22 00:01:04

How to display elements of MODX subcategories?

Hello.
There is such a structure
-Main category
--Category two
---Category elements
--Category three
---Category elements
I display everything through getresources
1. When we are on the main category, subcategories should be displayed (category two, three, etc.)
2 When we are on "Category two" its elements should be displayed.
So far, the first point works
The second point does not work, since getresources does not know how to make a selection, it refers to the subcategory, but data (tv) should be taken [at the moment tv is taken by subcategories, but should take tv elements] for elements. Please help resolve this issue. Thanks to all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
axblue, 2016-06-22
@leshikgo

Here is the challenge in the main category


And here in the subcategories

If you specify the ID parents of the subcategory, then everything works, but how to automate this, so that he would take the required ID of the parent of the subcategory, and not the category?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question