Multilanguage tree menu

Author Message

William Steenbergh

Wednesday 17 May 2006 6:33:29 am

Hi

I'm using the treemenu operator in my templates to create a menu on a site with multilanguage content. Users are able to change their languages, after which all the content changes, but the tree menu does not.

Does anybody know how to influence this behaviour?
I'm using Ez Pub 3.7, on php 4.4 and apache 2.0.55 for the record...

Łukasz Serwatka

Wednesday 17 May 2006 11:24:34 pm

Hi William

This enhancement was added to treemenu operator in 3.8 version.
http://pubsvn.ez.no/nextgen/stable/3.8/doc/features/3.8/enhanced_treemenu.txt

Also it is good idea to upgrade, because of new improvements in multilingual functionality.

http://ez.no/community/developer/specs/improved_multi_language_in_ez_publish_rev_2

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

William Steenbergh

Friday 19 May 2006 3:21:46 am

Hey thanks, this indeed would appear to be what I was looking for. Unfortunalely I'm unable to upgrade at this point, but replacing the treemenuoperator php files in the kernel seems to work as well...

Would you happen to know how the syntax for the new tree menu operator? I do believe it is not documented yet for 3.8

thanks

William

William Steenbergh

Tuesday 23 May 2006 2:26:17 am

bump

Łukasz Serwatka

Tuesday 23 May 2006 3:04:26 am

Hi,

The styntax is the same, just new paramaters were added.

This should work.

{def $mainMenu=treemenu( $module_result.path,
                                    $module_result.node_id,
                                    array('folder','info_page'), 1, 6, 15, array( 'eng-GB' ) )}

Look on the eZTreeMenuOperator class for more info.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

William Steenbergh

Tuesday 23 May 2006 3:16:11 am

Hey thanks!

Diddn't know in what order to pass the parameters (don't know if it matters, but I guess it does...)

And sorry for bumping the post... My boss was getting slightly impatient.

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 21:10:46
Script start
Timing: Jan 18 2025 21:10:46
Module start 'layout'
Timing: Jan 18 2025 21:10:46
Module start 'content'
Timing: Jan 18 2025 21:10:46
Module end 'content'
Timing: Jan 18 2025 21:10:46
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.9063152.6250
Module start 'layout' 0.00880.0038 740.531339.4453
Module start 'content' 0.01260.0096 779.976693.4297
Module end 'content' 0.02220.0034 873.406334.3047
Script end 0.0256  907.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003513.7172140.0003
Check MTime0.00135.1224140.0001
Mysql Total
Database connection0.00197.557410.0019
Mysqli_queries0.003614.033830.0012
Looping result0.00000.050310.0000
Template Total0.00228.710.0022
Template load0.00145.658810.0014
Template processing0.00082.983510.0008
Override
Cache load0.00124.510610.0012
General
dbfile0.00031.184580.0000
String conversion0.00000.030740.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