Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to get resource id in MODX Revo ?
Hello!
The scheme is this:
pdoResources:
[[pdoResources?
&parents=`3` // Мне нужны все дети этого родителя
&depth=`0`
&tpl=`action_slider` // Подключаю чанк
&includeTVs=`action_img,button_action` // необходимые tv
]]
[[$[[+tv.button_action]]]]
Первый вариант: 336097
Второй вариант: 2
Answer the question
In order to leave comments, you need to log in
I did something similar using PHx:
[[[[+tv.button_action]]:is=`
button_modal
`:then=`
336097
`:else=`
[[[[+tv.button_action]]:is=`
button_blank
`:then=`
2
`:else=`
`]]
`]]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question