Tuesday 05 April 2005 5:52:54 am - 2 replies
Lex 007
Tuesday 05 April 2005 5:59:19 am
Nevermind, I made it : stupid mistake.
I was using
->content()
instead of
->attribute("data_text")
Fabio Carissimi
Friday 30 June 2006 2:37:41 am
Hi,
I use the method described in this post : http://ez.no/community/forum/developer/add_object_relation_attribute_type_within_a_php_script :
$content = $objectRelationListAttribute->content(); $priority = 1; foreach ( $objectsToRelate as $objectToRelate ) { $content['relation_list'][] = eZObjectRelationListType::appendObject( $objectToRelate->attribute( 'id' ), $priority, $objectRelationListAttribute ); $objectRelationListAttribute->setContent( $content ); $objectRelationListAttribute->store(); $priority++; }
but it does not work, can you describe in more details your method which is working ?
Thanks for help
You must be logged in to post messages in this topic!