Forums / Install & configuration / multisite one database again

multisite one database again

Author Message

Pesti Pal

Friday 13 July 2007 2:24:52 am

I'm new to ez publish, and i need help, because i think i'm stuck.

I have installed ez 3.9.2 with a plain_site, i copied the configuration of plain_site into a new siteaccess, made the necessary adjustments and it works.

The problem is: i want only the subfolders of site1 to be available in the menu.. Same for site2.

In content view i have it like this:

EZ
|
|-site1(node 59)
|-site2(node 60)

When I browse index.php/site1 it shows contents of site1, but the menu has a link to site1 and site2 two!
when i click site1 it shows index.php/site1/site1 and
when i click site2 it shows index.php/site1/site2

I want two completly different sites from the user's perspective. With content common only at the database level.

i have tried to set in toolbar.ini.append.php:

parent_node=59
RootNodeID=59

in site.ini.append.php:

RootNodeDepth=59
IndexPage=/content/view/full/59/
DefaultPage=/content/view/full/59/

and in menu.ini.append.php:

[Topmenu_content]
URL[]
URL[default]=content/view/full/59
URL[browse]=content/browse/59

But nothing. I know the menu is implemented at the pagelayout level, so nothing seems to affect it!
I cleared cache 100 times.

Thanks in advance

Pesti Pal

Friday 13 July 2007 5:55:44 am

Modified flat_top.tpl:

 menuitems=fetch( content, list, hash( parent_node_id, 2,
                                               class_filter_type, include,
                                               class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), sort_by, $root_node.sort_array ) )}

to

 menuitems=fetch( content, list, hash( parent_node_id, 

<b>59</b>

,
                                               class_filter_type, include,
                                               class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), sort_by, $root_node.sort_array ) )}

Isn't there an easyer way?
I haven't seen anywhere in the code that ez checks any of parent_node settings, it just puts 2 in it... is this a bug?

Betsy Gamrat

Sunday 15 July 2007 8:54:54 am

Hi,

2 is usually the top of the content tree. If changing it to 59 works for you, then you're all set.

If you would like the setting derived out of the .ini file, you could use something similar to:

menuitems=fetch( content, list, hash( parent_node_id,
ezini(  'SiteSettings','RootNodeID','site.ini'), 
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), 
sort_by, $root_node.sort_array ) )} 

I didn't verify the syntax and labels on this, but the basic idea is to use ezini to get the RootNodeID out of site.ini.append.php

Good luck.

Pesti Pal

Monday 16 July 2007 1:04:26 am

Altered the code as you wrote. It works fine and I don't even need to make copies of flat_top.tpl.

Thanks

eZ debug

Timing: Jan 31 2025 01:30:14
Script start
Timing: Jan 31 2025 01:30:14
Module start 'content'
Timing: Jan 31 2025 01:30:14
Module end 'content'
Timing: Jan 31 2025 01:30:14
Script end

Main resources:

Total runtime0.2060 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.0469370.2891
Module start 'content' 0.00780.0119 958.33591,005.6875
Module end 'content' 0.01970.1862 1,964.02343,895.9688
Script end 0.2059  5,859.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.0779200.0002
Check MTime0.00140.6570200.0001
Mysql Total
Database connection0.00070.323210.0007
Mysqli_queries0.110053.41841410.0008
Looping result0.00160.75291390.0000
Template Total0.185690.110.1856
Template load0.00090.414110.0009
Template processing0.184789.680810.1847
Override
Cache load0.00060.268410.0006
Sytem overhead
Fetch class attribute can translate value0.00190.934010.0019
XML
Image XML parsing0.00020.104310.0002
General
dbfile0.00552.6567200.0003
String conversion0.00000.003930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs