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

Author Message

Jens Tiedemann

Tuesday 04 March 2008 4:50:54 am

{if $node.data_map.related_file.filename.is_empty|not}

always seem to return True....

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

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