Forums / Developer / eZImagemanager error slowing down template processing / Comment40173
Maxime Thomas
Friday 03 March 2006 1:13:29 am
I've got also this message when I tried to render the image. My code was :
{if ne('',$node.data_map.preview.content.small.url)} <img src="{concat('/',$node.data_map.preview.content.small.url)}" /> {else} <img src={'line/lien.gif'|ezimage()}/> {/if}
And the one which finally worked :
{if ne('',$node.data_map.preview.has_content)} <img src="{concat('/',$node.data_map.preview.content.small.url)}" /> {else} <img src={'line/lien.gif'|ezimage()}/> {/if}
And the fact I tried to access directly the alias was a mistake... Prefer use the <b>has_content</b> function.
Maxime Thomas maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou Company Blog : http://www.wascou.org/eng/Company/Blog Technical Blog : http://share.ez.no/blogs/maxime-thomas