Answer the question
In order to leave comments, you need to log in
How to display resource category template in modx?
Hello! Please tell me how to display the subcategory of the resource in the chunk and in the template if I am inside this resource? for example, I have 3 of them, I went into the pets resource material with id 45, the template displays the name of this resource category, that is, Pets.
Answer the question
In order to leave comments, you need to log in
MODX pdoField - getting and displaying the fields of the parent(s).
Or so .
If you use Fenom, then so {$_modx->resource.parent | resource : 'pagetitle'}
.
Do I understand correctly that if you, for example, go to the Skins and Pets category, then you need to display all its child resources (Pets, Costumes, etc.)?
You can install the pdoTools add-on .
And using the pdoResources snippet, display the subcategories like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question