[[+content_image]]
R
R
RushV2021-06-25 12:50:16
MODX
RushV, 2021-06-25 12:50:16

Why doesn't ModX validation work?

Hello!
Worth Migx.
I'm trying to validate the migx field and it doesn't work. I check like this for example Вопрос everything works.

[[getImageList?
             &tvname=`our_clients`
             &tpl=`@CODE:<div class="col-12 col-sm-6 col-lg"><img src="[[+img_migx]]" class="img-fluid  /></div>`
                   ]]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexander Lunegov, 2021-06-27
@alelunegov

In the getImageList snippet, the output modifier cannot be used in the &tpl=`@CODE:...` parameter. Move the code to a separate chunk, and specify the chunk name in the &tpl=`chunkname` parameter and everything will work.
PS after class="img-fluidthe quote forgot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question