[
{"caption":"Add an image", "fields": [
{"field":"image","caption":"Image", "inputTV":"slider_image"}
]}
] [
{"header": "Image", "width": "100", "sortable": "true",
"dataIndex": "image","renderer": "this.renderImage"}
]<img src="assets/images/background-slides-12.jpg" alt="" width="1400" height="1050" /> <img src="assets/images/background-slides-11.jpg" alt="" width="1400" height="1050" />
[[!getImageList?
&tvname=`slider_images`
&tpl=`@CODE:<img src="[[+image]]" alt="" width="1400" height="1050" />
`]][
{"caption":"Image", "fields":[
{"field":"image","caption":"Add an image","inputTVtype":"image"}
]}
] [[*slider_images]]
<img src="[{"MIGX_id":"2","image":"assets\/images\/AFT-DECK-facing-port-forward.jpg"},{"MIGX_id":"3","image":""},{"MIGX_id":"4","image":"ASM Corporate Page Property with NC-B.jpg"}]" alt="" />
With the current version of MIGX, you don't need inputTV for basic images anymore. Just name your field, give it a caption and specify the field type as image with inputTVtype:
[ {"caption":"Image", "fields":[ {"field":"image","caption":"Add an image","inputTVtype":"image"} ]} ]
If this doesn't do it. Try putting your @CODE tpl in a chunk instead.
[{"MIGX_id":"2","image":"assets\/images\/AFT-DECK-facing-port-forward.jpg"},
{"MIGX_id":"3","image":""},
{"MIGX_id":"4","image":"ASM Corporate Page Property with NC-B.jpg"}]
[{"MIGX_id":"2","image":"assets\/images\/AFT-DECK-facing-port-forward.jpg"}, {"MIGX_id":"3","image":""}, {"MIGX_id":"4","image":"ASM Corporate Page Property with NC-B.jpg"}]
the first one is looking good and should work.
The second is empty and the last one doesn't have a path and has a strange filename.
And try it with "inputTVtype":"image"
instaed of "inputTV":"image"
maybe you did have assigned the image-TV to a template.
This can have unwanted results.
Helper-TVs for MIGX should never be assigned to any template.
[{"MIGX_id":"2","image":"assets\/images\/AFT-DECK-facing-port-forward.jpg"},
{"MIGX_id":"3","image":""},
{"MIGX_id":"4","image":"ASM Corporate Page Property with NC-B.jpg"}]<img src="assets/images/AFT-DECK-facing-port-forward.jpg" /> <img src="ASM Corporate Page Property with NC-B.jpg" />
[[!getImageList? &tvname=`slider_images` &tpl=`@CODE:<img src="[[+image]]" alt="" width="1400" height="1050" />` ]]
this should work, but only, if your image-pathes are correct:
[[!getImageList? &tvname=`slider_images` &tpl=`@CODE:<img src="[[+image]]" alt="" height="1050" width="1400">` ]]
what do you get with this?