A
A
angelzzz2016-01-12 01:26:19
MODX
angelzzz, 2016-01-12 01:26:19

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

[[+comments_count]] answer(s)
R
Ruslan, 2016-01-12
@ruslan_aleev

Try like this:


12

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question