Friday 08 December 2006 1:43:24 am
Hi, In a custom class I have an attribute of type media that is not required, and displaying objects of this class, I want to test if this attribute (identifier : "son") contains a file or not. I have tried this :
{section show=$node.data_map.son.content.filename.is_empty|not}
<object type="application/x-shockwave-flash" data="{'dewplayer.swf'|ezimage('no')}?mp3={$node.data_map.son.content.filepath|ezroot('no')}" width="200" height="18" bgcolor="#cccccc">
<param name="movie" value="{'dewplayer.swf'|ezimage('no')}?mp3={$node.data_map.son.content.filepath|ezroot('no')}" />
<param name="bgcolor" value="#cccccc">
</object>{/section}
and this {if gt($node.data_map.son.content.filesize,0)}
<object type="application/x-shockwave-flash" data="{'dewplayer.swf'|ezimage('no')}?mp3={$node.data_map.son.content.filepath|ezroot('no')}" width="200" height="18" bgcolor="#cccccc">
<param name="movie" value="{'dewplayer.swf'|ezimage('no')}?mp3={$node.data_map.son.content.filepath|ezroot('no')}" />
<param name="bgcolor" value="#cccccc">
</object>{/if}
But my flash player always appears =(
eZ Publish Freelance
web : http://www.webaxis.fr
|