`Why is the selection in getimagelist not working?
V
V
Vechkov Alexander2019-10-22 19:56:10
CMS
Vechkov Alexander, 2019-10-22 19:56:10

Why is the selection in getimagelist not working?

There is this code:

[[getImageList?
  &tvname=`promo`
  &docid=`38`
  &where=`{"id-list:LIKE":"%2%"}`
  &tpl=`@CODE: <div class="<img src="[[+img]]" alt="[[+alt]]" class="promo_img">`
]]

id-list is the tv list box (multiple choice).
in this field in "Possible values" I have indicated
@SELECT menutitle, id FROM [[+PREFIX]]site_content WHERE parent IN (36,5,6,7,22,27)

In short, this tv field displays the id of the resources in this form - 13,55,56,83
According to the idea, the selection through "&where" should occur as follows:
if the array (13,55,56,83) contains the id of the current resource ( for example 13), then we output.
Why does not it work?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question