Hi,
I would be most grateful if someone with a little MIGX expertise is willing to help me out with this one, as I'm already intermittently banging my head against nearby walls.
In a resource I have a call to a chunk (PF1-ItemID is pointing to a resource that I have a MIGX TV assigned to):
[[$PF1-gRF? &PF1-ItemID=`52`]]
This is a MIGX call that is inside that chunk:
<div>
[[getImageList?
&docid=`52`
&tvname=`PF1-Galerie`
&tpl=`PF1-Galerie`
&outputSeparator=`
`
]]
</div>
Oh yeah, calling getImageList uncached here doesn't change a thing.
The TV PF1-Galerie is a migx-type TV. The following is the form tabs definition and the grid column definition:
[{
"caption":"Galeriebilder",
"fields": [{
"field":"bild",
"caption":"Bild",
"inputTV":"PF1-Bild"
}]
}]
[
{"header": "Bild", "width": "60", "sortable": "false", "dataIndex": "bild", "renderer":"this.renderImage"}
]
PF1-Bild, the inputTV, is a simple image-type TV not assigned to any template.
The following is the contents of the chunk PF1-Galerie:
<a href="[[+bild]]"
[[+_first:empty=`style="display:none"`]] class="zoom project_image">
<img src="[[+bild]]" alt="" class="" rel="colorbox" width="220px" height="150px">
</a>
When I have five different images assigned to resource with id 52 (via the MIGX tv, to be sure), in the resulting page I get the following sourcecode:
<div>
<a href="assets/images/visualisierung/Innen1.jpg" 1 class="zoom project_image"><img src="assets/images/visualisierung/Innen1.jpg" alt="" class="" rel="colorbox" width="220px" height="150px"></a>
<a href="assets/images/visualisierung/Innen1.jpg" style="display:none" class="zoom project_image"><img src="assets/images/visualisierung/Innen1.jpg" alt="" class="" rel="colorbox" width="220px" height="150px"></a>
<a href="assets/images/visualisierung/Innen1.jpg" style="display:none" class="zoom project_image"><img src="assets/images/visualisierung/Innen1.jpg" alt="" class="" rel="colorbox" width="220px" height="150px"></a>
<a href="assets/images/visualisierung/Innen1.jpg" style="display:none" class="zoom project_image"><img src="assets/images/visualisierung/Innen1.jpg" alt="" class="" rel="colorbox" width="220px" height="150px"></a>
<a href="assets/images/visualisierung/Innen1.jpg" style="display:none" class="zoom project_image"><img src="assets/images/visualisierung/Innen1.jpg" alt="" class="" rel="colorbox" width="220px" height="150px"></a>
</div>
Why does MIGX put the same image into +bild in every row? I am not expecting this to be a bug in MIGX or so, but I just cannot find yet the error in my code.
Thanks a lot in advance!
[ed. note: neo2.0 last edited this post 15 years, 1 month ago.]