Answer the question
In order to leave comments, you need to log in
How to use modifier with two or more ifs in MODX?
There is a task to determine which culturekey (there are three of them in total) and, depending on this, display resources, how to implement this using two if?
For two culturekeys it would look like this
[[pdoResources?
&parents=`[[++cultureKey:is=`ru`:then=`3`:else=`12`]]`
...
]
]
3, if culturekey=en, then output 12, if culturekey=fr, then output 21
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question