fetch into fetch

Author Message

ludo thomas

Friday 02 September 2005 5:27:00 am

is it possible to fetch elements of an other fetch,
like this?

{let nodes=fetch( 'content', 'list', hash( 'parent_node_id', 250 )) }

{section loop=$nodes}
    {$item.name}
	{let children=$item.node_id}
			{let nodechildren=fetch( 'content', 'list', hash( 'parent_node_id', $children )) }
			{section loop=$nodechildren}
			{$item.name}<br />
			{/section}{/let}{/let}
			<br />
{/section}<P>{/let}{/let}

(this code doesnt display children's nodes...)

ludo thomas

Friday 02 September 2005 5:44:27 am

sorry but this code is working fine...

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 22:37:27
Script start
Timing: Jan 18 2025 22:37:27
Module start 'layout'
Timing: Jan 18 2025 22:37:27
Module start 'content'
Timing: Jan 18 2025 22:37:29
Module end 'content'
Timing: Jan 18 2025 22:37:29
Script end

Main resources:

Total runtime1.1729 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.2266152.6094
Module start 'layout' 0.00560.0036 741.835939.4141
Module start 'content' 0.00921.1625 781.2500457.5313
Module end 'content' 1.17170.0011 1,238.78138.1875
Script end 1.1728  1,246.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2776160.0002
Check MTime0.00150.1268160.0001
Mysql Total
Database connection0.00070.060910.0007
Mysqli_queries1.134896.7518520.0218
Looping result0.00040.0363500.0000
Template Total1.140997.320.5705
Template load0.00190.160120.0009
Template processing1.139097.115420.5695
Template load and register function0.00010.008610.0001
states
state_id_array0.00080.067710.0008
state_identifier_array0.00060.050920.0003
Override
Cache load0.00160.1348110.0001
Sytem overhead
Fetch class attribute can translate value0.00050.042710.0005
Fetch class attribute name0.00080.064330.0003
XML
Image XML parsing0.00050.046610.0005
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00080.0674160.0000
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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs