I'm doing an image-slider where the images-input uses MIGX. This works fine. As long as I only need images.
In fact I also need text instead of images.
Now I tried to set up MIGX to input an image or a text (headline and textfield). As I understood, this is the Advanced MIGX Configuration with Multiple Forms. Unfortunately I don't get this to work.
Therefore I also tried the whole tutorial Varying layout-boxes. Even this doesn't work for me. I get an empty MIGX input-field in the manager and an output of an array in the frontend (not the fronted of the backend).
Here I restarted.
What I did:
The MIGX aggregate TV contains this:
form tabs:
[
{"caption":"Image", "fields":[
{"field":"image","caption":"Bild","inputTVtype":"image"}
]},
{"caption":"Text", "fields": [
{"field":"title","caption":"Titel"},
{"field":"inhalt","caption":"Inhalt","inputTVtype":"richtext"}
]}
]
grid:
[
{"header": "Titel", "width": "160", "sortable": "true", "dataIndex": "title"},
{"header": "Bild", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
]
In the template I use this, which of course only shows the images:
[[!getImageList? &tvname=`galleryMIGX` &tpl=`@CODE:<li><img src="dateien/[[+image]]" width="493" height="446" alt="Bild"></li>`]]
Somewhere I need to put my template for the text:
<li><div id="content"><h1>[[+title]]</h1>[[+inhalt]]</div></li>
Could please someone advice me how to get further with this. I'm quite confused at the moment.
MODX 2.2.10 and MIGX 2.5.6
Thanks!