How can I use conditional control(if) with datatypes(enum)?

Author Message

Daniel Lopes

Monday 15 June 2009 11:43:37 am

Hi there,

I created a new class in my site and I would like to print a css class on my template.

{if eq($node.object.data_map.my_attribute.output,'css_class')}
<print this>
{else}
<or print this>
{/if}

Thanks

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