P
P
Pupkin_v12021-02-25 15:03:43
MODX
Pupkin_v1, 2021-02-25 15:03:43

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 6037921c10ad9794330335.pngwent 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

2 answer(s)
A
Alexey Golyagin, 2021-02-25
@Pupkin_v1

MODX pdoField - getting and displaying the fields of the parent(s).
Or so .
If you use Fenom, then so {$_modx->resource.parent | resource : 'pagetitle'}.

D
Danny Arty, 2021-02-25
@DanArst

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:


&tpl specify your

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question