Share » Forums » Developer » Helper classes?

Helper classes?

Helper classes?

Wednesday 04 January 2006 1:21:33 pm - 2 replies

Author Message

Kristofer Pettersson

Thursday 05 January 2006 5:07:35 am

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();

with no success. :-(

Yelitza Jaramillo

Thursday 05 January 2006 7:07:28 am

Hei Kristofer,

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!

36 542 Users on board!

Forums menu