Show items in a random order, shuffle your Smarty arrays!

Many modules have ways to output lists of items. In most of them the output can be customized in "summary templates". If you would like to display the items in a random order, some modules provide a parameter you can set. But if a module lacks a randomize parameter, there is also a simple way to accomplish this with a single line of Smarty code.

{capture}{$items|@shuffle}{/capture}

Comments