Listing grandchildren in a table

Author Message

Glenn MacGregor

Tuesday 18 November 2003 12:40:50 pm

Hello,

So here is my situation. I have a folder (Support) which contains 2 folders (Technical support and Downloads). Each of those folders contains more folders.

When I browse the Support folder I want to have a 2 column table with the children as the headings of each column and the grandchildren below them.

Example:

Technical support | Downloads
TFolder 1 | DFolder 1
TFolder 2 | DFolder 2
TFolder 3 | DFolder 3
TFolder 4 |

(Note: the '|' just denotes the columns)

I figured out how to get all the grandchildren for each child the problem is how do I output it correctly. Meaning I need to output the first entry for Technical support then the first entry for Downloads. Then I need to output the second entry form technical support and the second entry from Downloads and so on.

Is that at all possible?

Thanks!!

Maybe a multidimensional array?

Glenn MacGregor

Wednesday 19 November 2003 4:54:21 am

Hi again,

Could not figure out how to accomplish this using HTML tables so I went with the HTML div's instead. Seems to work fine in all browsers.

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:36:13
Script start
Timing: Jan 19 2025 04:36:13
Module start 'layout'
Timing: Jan 19 2025 04:36:13
Module start 'content'
Timing: Jan 19 2025 04:36:14
Module end 'content'
Timing: Jan 19 2025 04:36:14
Script end

Main resources:

Total runtime1.2263 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.0077 589.1641152.6250
Module start 'layout' 0.00770.0028 741.789139.4453
Module start 'content' 0.01061.2142 781.2344425.8281
Module end 'content' 1.22480.0015 1,207.06258.1563
Script end 1.2263  1,215.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2826160.0002
Check MTime0.00150.1240160.0001
Mysql Total
Database connection0.00090.074210.0009
Mysqli_queries1.177996.0534520.0227
Looping result0.00070.0606500.0000
Template Total1.186296.720.5931
Template load0.00220.179120.0011
Template processing1.183996.545820.5920
Template load and register function0.00020.017410.0002
states
state_id_array0.00110.086910.0011
state_identifier_array0.00200.159820.0010
Override
Cache load0.00170.1405210.0001
Sytem overhead
Fetch class attribute can translate value0.00130.104610.0013
Fetch class attribute name0.00230.184720.0011
XML
Image XML parsing0.00010.009310.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00090.0702100.0001
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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs