fetch subfolders and list content problem

Author Message

Felix Laate

Thursday 03 July 2003 2:48:46 am

Hi all!

I've done (something like) the following:

{let folder_list=fetch(content,list,hash(parent_node_id,2,sort_by,array(array(priority))))}

{section name=Folder loop=$folder_list}
<b>{$Folder:item.name}</b>:<br />
{let sub_folder_list=fetch(content,list,hash(parent_node_id,$Folder:item.node_id,sort_by,array(array(priority))))}

{section name=SubFolder loop=$Folder:sub_folder_list}
-{$Folder:SubFolder:item.name}<br />
{/section}

{/let}
{/section}

{/let}

This works allright, but I want to list out the contents, as done with the line_class_2.tpl, not only the names.

How can do this?

Any help appreciated!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Paal Are Solberg

Thursday 03 July 2003 5:05:12 am

Will this help?
{children=fetch('content','list',hash(parent_node_id,$node.node_id,sort_by,$node.sort_array,limit,$page_limit,offset,$view_parameters.offset)) }

{section name=Child loop=$children sequence=array(bglight,bgdark)}
{node_view_gui view=line content_node=$Child:item}

{let grandchildren=fetch('content',list,hash(parent_node_id,$Child:item.node_id, 'sort_by',array("name", true())))}
{section name=Grand loop=$:grandchildren}
{node_view_gui view=line content_node=$:item}<br />
{/section}

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

Main resources:

Total runtime0.5923 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.4766152.6406
Module start 'layout' 0.00570.0025 742.117239.4766
Module start 'content' 0.00810.5832 781.5938526.5703
Module end 'content' 0.59130.0010 1,308.16418.1250
Script end 0.5923  1,316.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5661160.0002
Check MTime0.00140.2333160.0001
Mysql Total
Database connection0.00080.129510.0008
Mysqli_queries0.544091.8473540.0101
Looping result0.00040.0754520.0000
Template Total0.564995.420.2824
Template load0.00200.330620.0010
Template processing0.562995.040720.2815
Template load and register function0.00020.040710.0002
states
state_id_array0.00120.203310.0012
state_identifier_array0.00120.195820.0006
Override
Cache load0.00170.2841290.0001
Sytem overhead
Fetch class attribute can translate value0.00130.211920.0006
Fetch class attribute name0.00170.291930.0006
XML
Image XML parsing0.00120.210720.0006
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00120.2054160.0001
String conversion0.00000.001340.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/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
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs