Answer the question
In order to leave comments, you need to log in
How to change the value of parents in pdoResources depending on the url?
I'm promoting the site in two cities and trying to set up modx correctly so as not to produce a bunch of extra chunks and templates. The site structure is as follows:
Answer the question
In order to leave comments, you need to log in
Using pdoResources is a crutch here. Although in parents you can call a snippet that will substitute the desired id
. It would be better to implement contexts by analogy with language versions .
For example, here is the article https://bezumkin.ru/sections/tips_and_tricks/2439/ . or there are packages on https://modstore.pro/ and modx.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question