We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31191
    • 39 Posts
    I need to change the sort order of a tv that outputs the entire list of Resources in a site. The current dropdown is sorted by menu order maybe? That makes is very difficult for the client to find the correct resource to select. This is used to link an event listing to a resource with more information about the event.

    Is it possible to add input option values that would sort the Resource list by name or ID? or Name then ID?

    Also - Is there a limit on the # of drop down options? There are about 400 resources, so I'm wondering if that's why a specific resource isn't showing up in the drop down

    This question has been answered by davidpede. See the first response.

      perusing forums is where my comp sci degree got me.
    • discuss.answer
      • 44234
      • 219 Posts
      Don't think there is a way to sort the resources 'out of the box' but this should help you customise the TV to achieve what you want:

      https://forums.modx.com/thread/72122/tv-input-types---resource-list---sort-sequence#dis-post-401660
        Find me on Twitter, GitHub or Google+
        • 31191
        • 39 Posts
        Quote from: davidpede at Jul 25, 2013, 06:03 AM
        Don't think there is a way to sort the resources 'out of the box' but this should help you customise the TV to achieve what you want:

        https://forums.modx.com/thread/72122/tv-input-types---resource-list---sort-sequence#dis-post-401660

        I promise I searched for at least 20 minutes and couldn't find anything on it before posting. Appreciate the help. I went this this to sort by resource id

        $c->sortby('modResource.id','ASC');
          perusing forums is where my comp sci degree got me.