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.

eZ debug

Timing: Jan 18 2025 19:09:28
Script start
Timing: Jan 18 2025 19:09:28
Module start 'layout'
Timing: Jan 18 2025 19:09:28
Module start 'content'
Timing: Jan 18 2025 19:09:29
Module end 'content'
Timing: Jan 18 2025 19:09:29
Script end

Main resources:

Total runtime1.4323 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.7813152.6094
Module start 'layout' 0.00720.0037 740.390639.3984
Module start 'content' 0.01091.4201 779.7891403.1016
Module end 'content' 1.43100.0013 1,182.89068.2031
Script end 1.4323  1,191.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2363160.0002
Check MTime0.00140.0956160.0001
Mysql Total
Database connection0.00080.055010.0008
Mysqli_queries1.390597.0818460.0302
Looping result0.00050.0318440.0000
Template Total1.390497.120.6952
Template load0.00210.147720.0011
Template processing1.388296.923320.6941
Template load and register function0.00020.016910.0002
states
state_id_array0.00140.097010.0014
state_identifier_array0.00200.138320.0010
Override
Cache load0.00180.1264220.0001
Sytem overhead
Fetch class attribute can translate value0.00090.065410.0009
Fetch class attribute name0.00070.047210.0007
XML
Image XML parsing0.00030.019810.0003
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00050.0381100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs