Forums / Install & configuration / Making multiple sites with one database

Making multiple sites with one database

Author Message

Damien MARTIN

Friday 03 September 2010 2:49:45 am

Hi there,

I have 4 websites with common datas.

So, my tree is something like that :

/              [NodeID=2]
|- Site1       [NodeID=100]
|- Site2       [NodeID=200]
|- Site3       [NodeID=300]
|- Site4       [NodeID=400]
|- common      [NodeID=500]

And for each siteaccess I have :

site.ini.append.php

[SiteSettings]
IndexPage=/content/view/full/<My NodeID>/
RootNodeDepth=2

So it's ok, when I go to the root of the website I see the correct Node.

But there is something uncomplete with that... The path of each page stills :

/ home / website1 / my page

And I really would like to have

/ home / my page  (where home points to /home/website1)

So, as you should understoud, I want to remove the first folder ( Site[1,2,3,4] ) from my path and from my URL.

How could I do that ?

I suppose it is possible, but I don't see how.

Thanks,

Damien

Gaetano Giunta

Friday 03 September 2010 4:17:07 am

Sure it is! Hint: search for "path" and "prefix" in site.ini... ;-)

Principal Consultant International Business
Member of the Community Project Board

Greg McAvoy-Jensen

Sunday 05 September 2010 7:37:14 am

Damien,

There are more hints in this tutorial as well.

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

Damien MARTIN

Wednesday 08 September 2010 12:52:04 am

Hello Gaetano and Greg,

... IT ROCKS !!!!!!!!!!!!!!!!!!!!!

So, for those who don't want to read :

[SiteAccessSettings]
PathPrefix=<the name of the folder we want to remove from url>

Thank you again guys !!!

eZ debug

Timing: Jan 17 2025 23:57:54
Script start
Timing: Jan 17 2025 23:57:54
Module start 'content'
Timing: Jan 17 2025 23:57:54
Module end 'content'
Timing: Jan 17 2025 23:57:55
Script end

Main resources:

Total runtime0.1645 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0095 591.6016180.8203
Module start 'content' 0.00950.0094 772.421998.1484
Module end 'content' 0.01890.1455 870.5703527.3281
Script end 0.1643  1,397.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.1412200.0002
Check MTime0.00130.8032200.0001
Mysql Total
Database connection0.00231.426610.0023
Mysqli_queries0.108165.71351410.0008
Looping result0.00150.93441390.0000
Template Total0.144988.110.1449
Template load0.00100.628810.0010
Template processing0.143987.489410.1439
Override
Cache load0.00060.395210.0006
Sytem overhead
Fetch class attribute can translate value0.00070.400710.0007
XML
Image XML parsing0.00040.248610.0004
General
dbfile0.00533.2036200.0003
String conversion0.00000.003630.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