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
perusing forums is where my comp sci degree got me.
Quote from: davidpede at Jul 25, 2013, 06:03 AMDon'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.