I have a list of resources I’d like to sort in any order the client wants. Have tried the property call in the getResources description but no joy. Here is my code:
[[!getResourcesTag?
&element=`getResources`
&elementClass=`modSnippet`
&tpl=`navserviceList`
&hideContainers=`1`
&showHidden=`1`
&pageVarKey=`page`
&parents=`2`
&sortby=`FIELD(modResource.id, 3,4,5,6,7,8,13)` ]]
The resource ids happen to be in ascending order, but I need flexibility. I’m going to try assigning a TV and sorting by that but if this option is available it’s much cleaner.
Suggestions? did I miss a mod somewhere?
this should work with getResources. I’m not sure with getResourcesTag but should also.
use also &sortdir=`ASC` and perhaps &resources=`3,4,5,6,7,8,13`