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.
-
Not yet, but it's a good idea. I'll get it in the next release.
-
-
I second this. Was it already included in the latest release? I didn't see anything new in the template tags and parameters...
-
-
Sorry, no, slipped my mind. But it’s still planned. I’ll see about getting it into 1.1.2.
-
-
-
-
-
Has this been implemented yet? Couldn't see it in the change log.
-
-
Sorry, I must have missed the commit when writing the chagelog, but yes, sort="random" is implemented, and documented on http://pixelandtonic.com/assets/docs/...
-
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE
