It seems the above method isn't enough for the ezselection class. How do I load the selected value from the target document?
I've tried the following:
The obvious: $target_document->attribute( 'approved_by' )->content();
The less obvious: $attr->attribute( 'approved_by' )->content(); The bizare: $attr->dataType()->title();
To store data in an ezselection datatype
try this link http://ez.no/community/forum/developer/storing_content_in_an_ezselection_attribute
To retrieve data
$object_data_map = $target_object->attribute( 'data_map' );
// this returns an array
$aproved_by = $object_data_map[ 'aproved_by' ]->content();
//this will return the option number if the datatype is an ezselection
You must be logged in to post messages in this topic!