Terry Evans

Assets - random file display sort paramater

Is there a random sort paramater for displaying assets images/files? For example, I want to be able to assign a number of images to a field, then in my template display only one of those images randomly.

Would be great to do:

{my_assets_field sort="random" limit="1"}{filename}{/my_assets_field}

I could do this with Matrix, but it seems simpler to just use an Assets field rather than Matrix + Assets just to achieve this.
3 people have
this question
+1
Reply