Forums / Setup & design / Multilanguage tree menu
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
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
Tuesday 23 May 2006 2:26:17 am
bump
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.
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.