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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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