We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21606
    • 46 Posts
    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?
      • 4172
      • 5,888 Posts
      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`
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!