-
☆ A M B ☆
- 209 Posts
Hi guys, I'm having trouble getting images to render in a MIGX tv input grid. Could you guys take a look at my JSON and see if I'm doing something wrong? I took this from the documentation but I must have made a mistake somewhere. Thanks!
[
{"caption":"Images", "fields": [
{"field":"description","caption":"Description","inputTV":"eventImageDesc"},
{"field":"image","caption":"Image","inputTV":"eventImage","renderer": "this.renderImage"}
]}
]
[
{"header": "Description","sortable": "false", "dataIndex": "description"},
{"header": "Image","sortable": "false", "dataIndex": "slideImage","renderer": "this.renderImage"}
]
Ben Morrison
Hacking templates to pieces since 2003
-
☆ A M B ☆
- 397 Posts
Hey, instead of using "slideImage", just use "image" in your last line where you are referencing your image .. second set of lines, number 3. I think you need to reference the field name that you named your image in the first set of lines.
Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
-
☆ A M B ☆
- 209 Posts
Thanks that did it! Guess I didn't fully understad the format of the JSON.
Ben Morrison
Hacking templates to pieces since 2003