how can I check if a file object (datatype file) is empty?

how can I check if a file object (datatype file) is empty?

Tuesday 04 March 2008 4:50:54 am - 1 reply

Author Message

Stéphane Bullier

Tuesday 04 March 2008 5:18:22 am

Hi,

You can use :
{if $node.data_map.related_file.has_content}
true
{else}
false
{/if}

Stéphane

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.