Answer the question
In order to leave comments, you need to log in
[[+content_image]]
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
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-fluid
the quote forgot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question