Hi,
Sorry if this obvious, but I can't figure out how to manage with migx to filter out an image list (slideshow) got with getimagelist snippet.
I added a tv (check box *diapo_active ) to my migx to activate/deactivated each slide, but don't see how to use it actually..
I found &where parameter sounds good but not luck...All images are always fired.
Thank you for any ideas.
[
{"caption":"Texte", "fields": [
{"field":"title_diapo","caption":"Titre H4"},
{"field":"text_diapo","caption":"Légende Diapo","inputTV":"diapo_caption"}
]},
{"caption":"Diapo", "fields":[
{"field":"la_diapo","caption":"Diapo","inputTV":"img_diapo"},
{"field":"alt_diapo","caption":"Alt Diapo","inputTV":"diapo_alt"},
{"field":"act_diapo","caption":"Diapo active","inputTV":"diapo_active"}
]}
]
Grid:
[
{"header": "Titre", "width": "100", "sortable": "true", "dataIndex": "title_diapo"},
{"header": "Caption", "width": "350", "sortable": "false", "dataIndex": "text_diapo"},
{"header": "Image", "width": "280", "sortable": "false", "dataIndex": "la_diapo","renderer": "this.renderImage"},
{"header": "Alt image", "width": "100", "sortable": "false", "dataIndex": "alt_diapo"},
{"header": "Active", "width": "200", "sortable": "false", "dataIndex": "act_diapo"}
]
and the call:
<div class="container">
<!-- Carousel items -->
<ul class="bxslider">
[[!getImageList?
&tvname=`DiaposBxSlider`
&tpl=`Diapos-migx.innerTpl`
&tplFirst=`Diapos-migx.innerTpl1st`
&where={"diapo_active:=":"1"}]]
</ul>
</div>