[[+content_image]]
A
A
Alex2016-01-22 13:32:05
MODX
Alex, 2016-01-22 13:32:05

(Modx Revo) An if condition for a specific resource id and all of its child documents?

Hello, the actual question is how to display an if condition for a specific resource id and all its child documents?

[[If?
   &subject=`2`
   &operator=`inarray`
   &operand=`1`
   &then=`на главной`
]]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
Sergey, 2016-01-23
@astrodeep

You can do it easier and do without the addition:
If id=1 or parent=1, then - On the main page, otherwise - nothing

S
Sanes, 2016-01-22
@Sanes

docs.modx.pro/system/the-basics/filters-input-and-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question