a object is multi node?

Author Message

Bermudez Alban

Thursday 16 February 2006 2:33:06 am

Hello world,

When i create à file, i save it in a folder. But ez show the file in two node. My file is visible in my folder and in the base of my content structure :
Content structure
-- My file
-- My folder
-- -- My file

			$nodeAssignment =& eZNodeAssignment::create( array( 'contentobject_id' => $contentObject->attribute( 'id' ),
										'contentobject_version' => $contentObject->attribute( 'current_version' ),
										'parent_node' =>  $mainAttribute->attribute( 'contentobject_id'),
										'sort_field' => 2,
										'sort_order' => 0,
										'is_main' => 1 ) );		
			 $nodeAssignment->store(); 
      //Rajout AB                
      $node = new eZContentObjectTreeNode();
      $node->setAttribute( 'contentobject_version', 1 );
      //$node->setAttribute( 'path_identification_string', $mainAttribute->attribute('name').'/Test' );
      $node->setAttribute( 'contentobject_id', $contentObject->attribute( 'id' ) );
      $node->setAttribute( 'parent_node_id', $mainAttribute->attribute('contentobject_id'));
      $node->setAttribute( 'main_node_id', $contentObject->attribute( 'id' ) );
      $node->setAttribute( 'path_string', '/1/2/'.$mainAttribute->attribute('contentobject_id').'/'.$contentObject->attribute( 'id' ).'/' );
      $node->setAttribute( 'depth', 2 );
      $node->setAttribute( 'contentobject_is_published', 1 );
      $node->setAttribute( 'node_id', $contentObject->attribute( 'id' ) );
  		$node->setAttribute( 'sort_field', 2);
  		$node->setAttribute( 'sort_order', 0 );
      $node->setName( $mainAttribute->attribute('name') );
      $node->setContentObject( $contentObject );	
      $node->updateSubTreePath();
      $node->store();	
      eZContentObjectTreeNode::updateNodeVisibility( $node, $mainAttribute, false );                    
      //Fin rajout AB			 
			
			$version =& $contentObject->version( 1 );
			$contentObjectAttributes =& $version->contentObjectAttributes();
			$contentObjectID =& $contentObject->attribute( 'id' );

      //include_once('lib/ezutils/classes/ezoperationhandler.php');
      $operationResult = eZOperationHandler::execute( 'content', 'publish', array( 'object_id' => $contentObjectID,
                                                                                'version' => 1 ) );      

how can i just show the file in my folder?

Thnaks.

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 19 2025 04:18:42
Script start
Timing: Jan 19 2025 04:18:42
Module start 'layout'
Timing: Jan 19 2025 04:18:42
Module start 'content'
Timing: Jan 19 2025 04:18:43
Module end 'content'
Timing: Jan 19 2025 04:18:43
Script end

Main resources:

Total runtime1.4850 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.0049 590.2656152.6250
Module start 'layout' 0.00490.0026 742.890639.4297
Module start 'content' 0.00741.4763 782.3203410.3906
Module end 'content' 1.48380.0012 1,192.71098.1875
Script end 1.4850  1,200.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.1938160.0002
Check MTime0.00130.0881160.0001
Mysql Total
Database connection0.00060.041110.0006
Mysqli_queries1.447697.4803460.0315
Looping result0.00040.0288440.0000
Template Total1.450197.620.7251
Template load0.00190.127320.0009
Template processing1.448297.519520.7241
Template load and register function0.00020.011810.0002
states
state_id_array0.00140.091010.0014
state_identifier_array0.00140.092420.0007
Override
Cache load0.00150.0990120.0001
Sytem overhead
Fetch class attribute can translate value0.00100.066910.0010
Fetch class attribute name0.00060.040510.0006
XML
Image XML parsing0.00010.009410.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00150.1015100.0002
String conversion0.00000.000640.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 6

Time used to render debug report: 0.0001 secs