D
D
d_e_l_e_x2018-04-01 19:13:21
MODX
d_e_l_e_x, 2018-04-01 19:13:21

The output of specific resources does not work, how to fix it?

Hello. I am writing a multi-page site on modx. Faced the problem of selecting resources.
There are "News" and "Photo Gallery" pages. News should publish all news and photos using pdoResources. Only photos from the same news are published on the "Photo Gallery" page. On the page, in the resources of the "Photo Gallery" I wrote the following. the code:


The parent specified that the photos should be published on two pages Photo Gallery (ID=20) and News (ID=11).
Thus, I will have absolutely all news and photos in the news, and only photos will be on the "Photo Gallery" page.
The problem is that absolutely all resources and news and photos are imported to the "Photo Gallery" page. That is, my logic is not correct ..
What am I doing wrong? Or maybe other methods should be used?
I hope I have explained the situation clearly.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question