A
A
Archer *range attack +10*2017-02-11 23:31:59
MODX
Archer *range attack +10*, 2017-02-11 23:31:59

How to make such a withdrawal of resources?

There is a resource structure

Производитель
  |_Модель
    |_Общие
      |_Не включается
      |_Не заряжается
  |_Модель
  |_Модель
  |_Проблемы (он-то нам и нужен)
    |_Общие
      |_Не включается
      |_Не заряжается
    |_Стекло и корпус
      |_Разбито стекло
      |_Разбит дисплей
      |_Разбит корпус

You need to display all the problems by category on the "Manufacturer" page, but only the problems that are common to all devices. The problems of each model do not need to be displayed, they are already displayed on the page of the model itself. It should look like this:
3bbf93358b564e7f816e2debdbdde190.png
The problem is that when I list the resources through getResources, it loops through all the resources and outputs not only the general problems, but the problems of each model.
Please tell me how to organize output.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Archer *range attack +10*, 2017-02-12
@kon-rafikov

I decided! I spat on getResources and did everything with the help of Wayfinder, where subcategories are displayed by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question