Conditionally check for existence of a select menu value

Author Message

Tony Stark

Monday 03 March 2008 9:32:34 am

Hi,

I need to check if a value within an attribute of a class has a value or not (single selection menu). I have tried the following, but it does not work:

{if eq(1,$node.object.data_map.myarttribute.attribute.content|count())}
has value...
{/if}

Any pointers to be able to conditionally check these values?

Thanks, Tony.

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