Forums / Developer / Getting content class object attributes / Comment46566
Kristof Coomans
Friday 25 August 2006 1:45:23 am
Hello Børge
Try this:
$node = eZContentObjectTreeNode::fetch( $nodeID ); $object =& $node->attribute( 'object' ); echo "<pre>"; print_r( $object->relatedContentObjectList( false, false, $classAttributeID ); echo "</pre>";
where $classAttributeID is the id of the class attribute with related authors. You can also use a boolean false instead if you want all related objects (made on both object and object attribute level), and 0 (the default) for related objects made on object level.
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org