treemenu configuration help needed

Author Message

Alessandro Cipriani

Wednesday 14 January 2004 2:28:15 am

hi all
i downloaded the treemenu extension, registered it and included it in my pagelayout.tpl template. without changing anything in the treemenu1.tpl file.
the site is organized as follows:

-home
--the group
---my group
---the group in the world

and so on

and it has an horizontal main menu, while i'm trying to install the vertical treemenu

the problem is that i only see the parent of the node i select (on the main menu) without viewing it and its sons!
(if i select "the group" in my treemenu i only can see "home", and i can't see "my group" and "the group in the world")

i need some help on the configuration!
thanx a lot
alessandro

James Packham

Wednesday 14 January 2004 4:12:26 am

I'm not sure if this helps (as I'm not sure what your question is!!) but you know that your node contains an array of all the children? Look in $node.path array.

For example I use it in the template full for my articles to show the name of folder y in this layout:

---- folder x
------- folder y
----------- article a
----------- article b

Using this code:

<p class="title">latest articles in {$node.path[2].name} </p>

I can show the id of that node like so:

<p class="title">latest articles in {$node.path[2].node_id} </p>

Does that help?

Regards,

~James~

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 09:52:30
Script start
Timing: Jan 19 2025 09:52:30
Module start 'layout'
Timing: Jan 19 2025 09:52:30
Module start 'content'
Timing: Jan 19 2025 09:52:30
Module end 'content'
Timing: Jan 19 2025 09:52:30
Script end

Main resources:

Total runtime0.0163 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.2578152.6250
Module start 'layout' 0.00500.0035 741.882839.4453
Module start 'content' 0.00840.0057 781.328189.3359
Module end 'content' 0.01410.0021 870.664130.3047
Script end 0.0162  900.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.7946140.0002
Check MTime0.00116.6487140.0001
Mysql Total
Database connection0.00084.687010.0008
Mysqli_queries0.002716.688430.0009
Looping result0.00000.092210.0000
Template Total0.001710.710.0017
Template load0.00105.889510.0010
Template processing0.00084.809910.0008
Override
Cache load0.00074.122410.0007
General
dbfile0.00031.786280.0000
String conversion0.00000.041040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs