Now I want to display a random selection of these images on a webpage, like this:
One Image:
Code: Select all
{random_image dir="images/Gallery/tiles" assign="myImage" urlonly=1}
<img src="{$myImage}">
Code: Select all
{random_image dir="images/Gallery/tiles" count=6 assign="myImageCollection" urlonly=1}
{foreach $myImageCollection as $myImage}
<div><img src="{$myImage}"></div>
{/foreach}
If not, how should I go about to solve this task? By creating a User Defined Tag, or a Plugin/Module?
Regards,
Christian