eZ Community » Forums » Setup & design » Enum Value, where to find it ?!
expandshrink

Enum Value, where to find it ?!

Enum Value, where to find it ?!

Wednesday 07 May 2003 2:02:17 pm - 2 replies

Hi ..

any1 know how to get the enum value ?

thx

Wednesday 07 May 2003 3:28:29 pm

$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?

Wednesday 07 May 2003 4:30:05 pm

thx fro reply .. but just found it how to get it happy.gif Emoticon

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from