Forums / Setup & design / Root node of a menu

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

eZ debug

Timing: Jan 18 2025 15:15:47
Script start
Timing: Jan 18 2025 15:15:47
Module start 'content'
Timing: Jan 18 2025 15:15:48
Module end 'content'
Timing: Jan 18 2025 15:15:48
Script end

Main resources:

Total runtime1.4842 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.6875180.8438
Module start 'content' 0.00541.2959 768.5313536.0078
Module end 'content' 1.30130.1828 1,304.5391332.7734
Script end 1.4841  1,637.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2522210.0002
Check MTime0.00150.1003210.0001
Mysql Total
Database connection0.00070.047410.0007
Mysqli_queries1.421895.79751910.0074
Looping result0.00190.12801890.0000
Template Total1.458998.320.7294
Template load0.00180.124620.0009
Template processing1.457098.170220.7285
Template load and register function0.00020.010210.0002
states
state_id_array0.00080.052710.0008
state_identifier_array0.00170.113420.0008
Override
Cache load0.00150.1020200.0001
Sytem overhead
Fetch class attribute can translate value0.00130.087130.0004
Fetch class attribute name0.00090.063930.0003
XML
Image XML parsing0.00100.070530.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00210.1432290.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs