[[+content_image]]
D
D
D_drop2016-05-14 14:29:54
MODX
D_drop, 2016-05-14 14:29:54

How to write a condition for the output of different chunks on Modx revo using tv from MIGX?

There is a MIGX table with two tabs: "description" text and "image" uploaded photo.
Displaying images in a slider:

[[!getImageList?
     &tvname=`photoVideo`
      &tpl=`photo_video`
       &docid=`2`  ]]

And in the `photo_video` chunk I try to write a condition on PHx :
<li><a rel="group" href="[[+image]]"><img src="[[+image]]"></a></li>

And it does not work) what could be wrong?
The meaning of the condition: if There is a MIGX table with two tabs: 'description' text and 'image' uploaded photo. Displaying images in a slider:[[!getImageList? &tvname=`photoVideo` &tpl=`photo_video` & is filled in Migx, then a chunk for the video is displayed, where There is a MIGX table with two tabs: 'description' text and 'image' uploaded photo. Displaying images in a slider:[[!getImageList? &tvname=`photoVideo` &tpl=`photo_video` & is the video url. If not, then a chunk for a photo

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
Руслан, 2016-05-14
@D_drop

Тут нужно писать так:

There is a MIGX table with two tabs: 'description' text and 'image' uploaded photo. Displaying images in a slider:[[!getImageList? &tvname=`photoVideo` &tpl=`photo_video` &

Подробнее о фильтрах ввода-вывода - 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