<img src="[[*image]]"/>
Hello there,
Indeed amazing add-on. Thank you Bruno!
Question:
I have two divs where I output two lists of different data from the same MIGX tv.
Basically one div gets text from one field and second from another. Fields are related to each other (that’s why only one tv).
To make it more useful in this particular situation I wanted to randomize their order. The problem is, I have to output those in two different places in the code, so I call getImagesList two times but randomize obviously gives different order every time it’s called and I want to keep same order in both lists (but still randomized). To make it even clearer:
1) This is what I have by default:
[table][tr][td]1-1[/td][td]2-2[/td][td]3-3[/td][td]4-4[/td][td]5-5[/td][/tr][/table]
2) This is what I get by using randomize on two calls (example):
[table][tr][td]1-3[/td][td]5-2[/td][td]2-1[/td][td]4-4[/td][td]3-5[/td][/tr][/table]
3) This is what I want to achieve (example):
[table][tr][td]1-1[/td][td]5-5[/td][td]2-2[/td][td]4-4[/td][td]3-3[/td][/tr][/table]
Any simple ideas?
&outputvalue=`[[+randomizedJson]]`

[[!getImageList?
&tvname=`customers`
&randomize=`1`
&toJsonPlaceholder=`jsonoutput`
]]
<div id="customerLogoHolder">
[[!getImageList?
&value=`[[+jsonoutput]]`
&tpl=`tplCustomers`
]]
</div>
<div id="customerNavigation">
<a href="#" class="prev">PREVIOUS</a>
<a href="#" class="next">NEXT</a>
</div>
<div id="customerTestimonyHolder">
[[!getImageList?
&value=`[[+jsonoutput]]`
&tpl=`tplQuotes`
]]
</div>
I noticed issue in documentation here http://rtfm.modx.com/display/ADDON/MIGX.Frontend-Usage
"example: &toJsonPlaceholder=`jsonoutput` -> [[getImagelist? &outputvalue=`[[+jsonoutput]]`................]]"
Obviously other calls doesn’t use &outputvalue parameter but &value.

TV Name: colors Option Values: Red==red||Blue==blue||Yellow==yellow
red,blue
This discussion is closed to further replies. Keep calm and carry on.