/ Published in: eZ Publish
If you need to display content images as background on a element. You need to set height, width and background for the element
Expand |
Embed | Plain Text
{foreach $images as $image} <div style="height:{$image.data_map.image.content['original'].height}px;width:{$image.data_map.image.content['original'].width}px;background: url(http://{ezini( 'section', 'SiteURL', 'site.ini' )}{$image.data_map.image.content['original'].url|ezroot(no)}) no-repeat;">{$image.name|wash}</div> {/foreach}
You need to login to post a comment.
