Monday 01 December 2008 2:35:34 am
Hi Christophe, Assuming $node is an "ezcontentobjecttreenode" php object : $dataMap = $node->dataMap(); // or ->attribute( 'data_map' ); will return an array of ezcontentobjectattribute php object each ezcontentobjectattribute has a "content" and this "content" is controlled by a datatype and its objectAttributeContent() method. So If you do :
$myImageAttribute = $dataMap['image_attribute']; // the attribute identifier is "image_attribute" $myImageContent = $myImageAttribute->content(); // you'll get $myImageContent as an eZImageAliasHandler this object is defined in kernel/classes/datatypes/ezimage/ezimagealiashandler.php by using $myImageContent->attribute( 'something' ) you'll be able to access ImageVariation and in each image variation you'll have an attribute called "full_path" which is actually the same ez uses in its template to build the <img src=""/> tags. Hope this helps.
Looking for information about SQLI ?
Looking for a new job in Paris ?
Please contact me at alafon [at] sqli [dot] com
|