Multi site / same database

Author Message

Artturi Markko

Tuesday 26 June 2007 7:02:19 am

Hello,

I'm going to setup ez publish in a school, for several groups of users.
Each group will have its own node, with special rights dedicated to its members.

There will be one portal site permitting to each user to navigate through the global site.

Will I be able to add group sites, based on the same database, each one having its virtualhost ?

The goal is to get a group site like http://maths.ourschool.net, with dedicated templates, but content based on what is under the math group's node.

Thanks in advance,

Artturi

André R.

Tuesday 26 June 2007 12:13:08 pm

What is the requirement for the sites, are they going to be completely independent in design, or same site with some specific styling for each page ?

The reason I ask is that if they are going to be similar, you can accomplish this relatively easy using ezwebin (Webinterface) and the setting 'RootNodeDepth', in site.ini [SiteSettings].

>Will I be able to add group sites, based on the same database, each one having its virtualhost ?
Yes, but you need one siteaccess pr page.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Artturi Markko

Wednesday 27 June 2007 3:35:33 am

It's more about the navigation than the design.

The big site will have it's root node at the top of the content while the math site will have it's root defined by the node of the math group.

Then, the css and layout can be almost the same, the difference being illustrated by the sitemap.

Regards
Artturi

André R.

Saturday 30 June 2007 11:50:52 am

In that case you should not use the RootNodeDepth setting, since it would require a structur like this:

root
|
-Page 1
|
-Page 2
|
-Page 3

Or in words, all sites must be on the same node depth.

So in your case you can use the different siteaccesses override files to assign different pagelayout pr siteaccess, the override in the math siteaccess would look like this:

[math_pagelayout]
Source=pagelayout.tpl
MatchFile=math_pagelayout.tpl
Subdir=templates

Keep in mind that you can't use the template_look class to control site look since its not multi site safe. In the pagelayout included in ezwebin, its assigned to the variable $pagedesign.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 19:28:32
Script start
Timing: Jan 18 2025 19:28:32
Module start 'layout'
Timing: Jan 18 2025 19:28:32
Module start 'content'
Timing: Jan 18 2025 19:28:33
Module end 'content'
Timing: Jan 18 2025 19:28:33
Script end

Main resources:

Total runtime0.9374 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0547152.6250
Module start 'layout' 0.00620.0053 741.679739.4453
Module start 'content' 0.01150.9225 781.1250553.9141
Module end 'content' 0.93400.0033 1,335.039112.1641
Script end 0.9373  1,347.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3521160.0002
Check MTime0.00140.1446160.0001
Mysql Total
Database connection0.00090.098210.0009
Mysqli_queries0.873093.1312600.0146
Looping result0.00080.0855580.0000
Template Total0.898195.820.4490
Template load0.00220.237620.0011
Template processing0.895895.567420.4479
Template load and register function0.00030.030510.0003
states
state_id_array0.00070.077810.0007
state_identifier_array0.00190.197820.0009
Override
Cache load0.00190.2007380.0000
Sytem overhead
Fetch class attribute can translate value0.00070.077720.0004
Fetch class attribute name0.00150.154850.0003
XML
Image XML parsing0.00070.073420.0003
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00170.1824170.0001
String conversion0.00000.001240.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs