How to fetch nodes of a specific node list?

Author Message

Daniele Nocentini

Thursday 17 March 2005 5:59:29 am

I have a specific node that contain a list of subnodes, I want to display the nodes of this subnodes, How can I do?

my code:

{let children=fetch('content',list,hash(parent_node_id,119,
													class_filter_type, include, 
													class_filter_array, array( 1 ),
													"sort_by",array("published",false())))}
													
													
													
			<TABLE border="1" cellpadding="0" cellspacing="0"> 
			<tr>
			{section name=Child loop=$children}

			<td width="50%" valign="top">
			{$Child:item.object.data_map.name.content}
			

			<table width="100%"  border="1" cellspacing="0" cellpadding="0">
			<tr>
			<td>data</td>
			<td>nome</td>
			<td>luogo</td>
			</tr>
			<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			</tr>
		
			</table>

			</td>
			{delimiter modulo=2}
			</tr>
			<tr>
			{/delimiter}
			{/section}
			</tr>
		  </TABLE>								
			{/let}

Antica Bottega Digitale srl
http://www.abd.it

Lex 007

Thursday 17 March 2005 6:06:17 am

Maybe using the treemenu operator ?

http://www.ez.no/ez_publish/documentation/reference/template_operators/miscellaneous/treemenu

Daniele Nocentini

Thursday 17 March 2005 6:47:49 am

I try the example of docs but don't show anything!

Antica Bottega Digitale srl
http://www.abd.it

Valentina Ferrari

Thursday 17 March 2005 6:58:27 am

Try to use

{let children=fetch('content',tree,hash(parent_node_id,119,
> class_filter_type, include, 
> class_filter_array, array( 1 ),
> "sort_by",array("published",false())))}

TREE instead of LIST

bye
valentina

Daniele Nocentini

Thursday 17 March 2005 7:04:16 am

Thanks Valentina.

I try this code and work fine!

<table>
{section name=Folder}
{section loop=fetch(content,list,hash(parent_node_id,119, class_filter_type, "include", class_filter_array, array(1,2),sort_by,array(array(priority))))}
<tr>
<td class="path">--{$Folder:item.name}

{section loop=fetch(content,tree,hash(parent_node_id,$Folder:item.node_id, class_filter_type, "include", class_filter_array, array(29),sort_by,array(array(priority))))}
<ul>
<li></li>----{$Folder:item.name}</a></li>
</ul>
{/section}
</td>
</tr>
{/section}
{/section}
</table>

Antica Bottega Digitale srl
http://www.abd.it

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

Main resources:

Total runtime0.6855 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0118 589.1719152.6406
Module start 'layout' 0.01180.0050 741.812539.4766
Module start 'content' 0.01680.6673 781.2891597.7266
Module end 'content' 0.68410.0013 1,379.015616.1250
Script end 0.6854  1,395.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5894160.0003
Check MTime0.00140.2063160.0001
Mysql Total
Database connection0.00280.406110.0028
Mysqli_queries0.608888.8073650.0094
Looping result0.00070.1050630.0000
Template Total0.644694.020.3223
Template load0.00240.344420.0012
Template processing0.642293.691720.3211
Template load and register function0.00010.013410.0001
states
state_id_array0.00080.118610.0008
state_identifier_array0.00110.155120.0005
Override
Cache load0.00190.2812250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.079030.0002
Fetch class attribute name0.00300.443170.0004
XML
Image XML parsing0.00160.235030.0005
class_abstraction
Instantiating content class attribute0.00000.003290.0000
General
dbfile0.00200.2891220.0001
String conversion0.00000.001940.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs