craftsmancoding / assetmanager

Asset Manager for MODX Revolution
36 stars 15 forks source link

Random sort order for output #3

Closed miahwannacode closed 10 years ago

miahwannacode commented 10 years ago

I'm thinking of using the getPageAssets snippet for a gallery I'm creating for a page I'm working on. The idea is to have a random image output for every page load. I noticed that the page assets are sorted according to seq. A sort parameter where we could do something like &sort=RAND() would be awesome.

fireproofsocks commented 10 years ago

RAND() is now a valid parameter for the &sort parameter.