Root node of a menu

Author Message

Mathieu Bouquet

Monday 04 June 2007 3:21:58 pm

Hi,
I am running two different sites on one single 3.9.2 ezPublish (using URI mapping).

So, I have
http://localhost/index.php/site1
and
http://localhost/index.php/site2

I use the same templates for both sites, but I would like to have two different menus (I mean, for the content, not for the design), based on two different nodes. I have seen that there used to be a parameter of treemenu() which could have been helpful in previous versions, but it has been deprecated in 3.9.x.

So, what is the new way to specify the root of a menu?

I am a beginner in ezPublish, so I have been looking for a solution on the forums and in the documentation for some hours, but I can't find anything related to my problem. I am a little bit hopeless. As I guess it is not so complicated, I am sending an SOS...

Thanks in advance.

Greg McAvoy-Jensen

Monday 04 June 2007 4:06:12 pm

I've not done this before it looks like the process may be to create a file called <b>contentstructuremenu.ini.append.php</b> in ezpublish/settings/siteaccess/site1. Put this in the file:

<?php /* #?ini charset="iso-8859-1"?

[TreeMenu]
RootNodeID=x
*/ ?>

Replace "x" with the root node ID for site1. Then create a similar file for site2.
Then clear the caches. Again, since I haven't done this I don't know if there would be any unintended results. For more information, see http://ez.no/doc/ez_publish/technical_manual/3_9/reference/configuration_files/contentstructuremenu_ini/treemenu/rootnodeid.

However, if you just want different sites for different languages only, then see "Using several public siteaccesses" at http://ez.no/doc/ez_publish/technical_manual/3_9/features/multi_language/configuring_the_site_languages.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

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

Main resources:

Total runtime1.4979 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.0064 589.0234152.6250
Module start 'layout' 0.00640.0032 741.648439.4297
Module start 'content' 0.00971.4866 781.0781530.9297
Module end 'content' 1.49620.0016 1,312.007812.1875
Script end 1.4978  1,324.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2488160.0002
Check MTime0.00130.0888160.0001
Mysql Total
Database connection0.00090.059910.0009
Mysqli_queries1.445796.5137540.0268
Looping result0.00070.0500520.0000
Template Total1.459597.420.7298
Template load0.00210.141420.0011
Template processing1.457497.296620.7287
Template load and register function0.00020.014410.0002
states
state_id_array0.00100.066510.0010
state_identifier_array0.00200.136120.0010
Override
Cache load0.00170.1159200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043320.0003
Fetch class attribute name0.00130.090130.0004
XML
Image XML parsing0.00100.066620.0005
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00180.1192180.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs