Show an image. |
|
| see zena 1.0 | |
Display an “img” tag to show the current node.
Simplest example:
<r:img/>
Display an image with a different mode:
<r:img mode='pv'/>
Use the image in ‘preview’ mode to link to full object:
<r:img src='icon' link='this'/>
And finally, use an alternate source in case the current node (this) is not an image (alt_src is either RubyLess or a query):
<r:img alt_src='icon' mode='std'/>
The “icon” alternative source is a special keyword that is translated to the following SQLiss image or icon group by id,l_id order by l_id desc, position asc. This means that it will try to find the linked icon or it will use the first image in the object.