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 !!!

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 29 2025 23:49:28
Script start
Timing: Jan 29 2025 23:49:28
Module start 'layout'
Timing: Jan 29 2025 23:49:28
Module start 'content'
Timing: Jan 29 2025 23:49:29
Module end 'content'
Timing: Jan 29 2025 23:49:29
Script end

Main resources:

Total runtime0.8963 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2734151.2266
Module start 'layout' 0.00460.0017 739.500036.6797
Module start 'content' 0.00630.8892 776.1797551.1406
Module end 'content' 0.89550.0008 1,327.320311.8281
Script end 0.8963  1,339.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.3153160.0002
Check MTime0.00120.1349160.0001
Mysql Total
Database connection0.00080.085410.0008
Mysqli_queries0.851294.9678630.0135
Looping result0.00050.0504610.0000
Template Total0.871497.220.4357
Template load0.00210.232120.0010
Template processing0.869396.986320.4346
Template load and register function0.00010.013810.0001
states
state_id_array0.00160.175610.0016
state_identifier_array0.00110.122320.0005
Override
Cache load0.00180.1957370.0000
Sytem overhead
Fetch class attribute can translate value0.00050.055730.0002
Fetch class attribute name0.00090.097770.0001
XML
Image XML parsing0.00260.293330.0009
class_abstraction
Instantiating content class attribute0.00000.001380.0000
General
dbfile0.00310.3410300.0001
String conversion0.00000.000840.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs