Home : OpenEdit SDK : Programming OpenEdit : Random Images
Random Images
You can specifiy a range of images by using this action:
<path-action name="BannerModule.randomNumber" >
<toplimit>10</toplimit>
</path-action>
Then in your HTML page you can do this:
<img src="/images/banners/someimage${bannernumber}.jpg" alt="Hurry"/>
Or you can do this:
$pages.stream("/images/banners/${bannernumber}.html")
To load up a custom HTML snip.
