Forums / Setup & design / Enum Value, where to find it ?!

"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".

Enum Value, where to find it ?!

Author Message

Selmah Maxim

Wednesday 07 May 2003 5:02:17 am

Hi ..

any1 know how to get the enum value ?

thx

Sergiy Pushchin

Wednesday 07 May 2003 6:28:29 am

$dataMap = $yourContentObj->attribute( 'data_map' )
$enumAttribute = $dataMap[ 'your_enum_attribute_identifier' ];
$enumObj = $enumAttribute->attribute( 'content' );
//That is an array off selected enum values, if it is single select it will
// consist of one element
$enumobjectList = $enumObj->attribute( 'enumobject_list' );
$selectedEnumValue = $enumobjectList[0]->attribute( 'enumelement' );

Is this what you was wondering about?

Selmah Maxim

Wednesday 07 May 2003 7:30:05 am

thx fro reply .. but just found it how to get it :)

{$attribute.content.enumobject_list.0.enumvalue}