Hi,
I have a similar challenge.
I use migx for a listing of contactpersons
In my tv ContactPersonList I have a list of all contactpersons.
in my tv ChooseContactPersons the editor can choose which contactpersons to show. I use a multiselect listbox.
In my template I have this call:
[[getImageList?
&where=`{"name:in_array":"[[*ChooseContactPersons]]"}`
&tvname=`ContactPersonList`
&docid=`1`
&tpl=`@CODE:<address> [[+company]] - <strong>[[+name]]</strong> <br/>
<abbr title="Phone">P:</abbr> [[+phone]] <abbr title="E-mail">E:</abbr> <a href="mailto:[[+email]]">send e-mail</a></address>`
]]
Now I want to sort the contactperson in the selected order from my multiselect listbox.
IE:
this is what I select in the multiselect listbox:
Contactperson1, Contactperson5, Contactperson4,Contactperson6
If I use the &sort like this:
&sort=`[{"sortby":"name","sortdir":"asc"}]`
it will sort from the TV ContactPersonList and not from the Array order in the TV ChooseContactPersons.
How can I get it to sort, from the selected order, in the multiselect listbox?
Thanks in advance.