Author Topic

Kedar Deshpande

Friday 06 November 2009 11:25:07 am

Comment55630

I used the code Kristof mentioned up above (with variable changes) but it seems to crash at the line where the appendObject method is called:

<code>

$content = $positionAttributes['article_selection']->content();
$priority = 1;
$content['relation_list'][] = eZObjectRelationListType::appendObject( $articleObject->attribute( 'id' ), $priority, $positionAttributes['article_selection'] );
$positionAttributes['article_selection']->setContent( $content );
$positionAttributes['article_selection']->store();
$priority++;

</code>

Any ideas why?

Thanks.