new location

Author Message

Michele Franceschi

Tuesday 27 January 2004 1:18:38 pm

I must add a new location to a exist object.

I try two code:
1)
$nodeAssignment =& eZNodeAssignment::create( array(
'contentobject_id' => $object2->attribute( 'id' ),
'contentobject_version' => $object2->attribute( 'current_version' ),
'parent_node' => $nodeObject1->attribute( 'node_id' ),
'sort_field' => 1,
'sort_order' => 1,
'is_main' => 0
)
);

$nodeAssignment->store();

2)
$version2 = $object2->version( $object2->attribute( 'current_version' ) );
$version2->assignToNode( $nodeObject1->attribute( 'node_id' ), 0 );
$version2->store();

if I edit the object I see the new location, but if I go to the new location I don't see the object.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.