multiple sites on one database

Author Message

Marko Žmak

Monday 31 January 2005 3:54:41 pm

I would like to create multiple sites with one eZ installation. I know this is supported, but my problem i this:

I would like each site to have his own root folder in eZ. Example...

Let say we have the followin eZ node structure:

Root
|
|--News
----|
----|---- Daily
----|---- Weekly
----|---- World
|--Forums
----|
----|---- General
----|---- Discuss
----|---- Other
|--Info
----|
----|---- Site
----|---- Companies
----|---- Clients

So I want to create three sites: News, Forums and Info, and each site to have his own folder as root or something similar. The main idea is that users cannot acces the nodes of Info site through user interface of News site. How do I do that?

NOTE: I have only one database available.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Björn Dieding@xrow.de

Monday 31 January 2005 4:04:45 pm

This is possible.

Please have a look in the docs where it tells you how to setup a "multi site".

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Björn Dieding@xrow.de

Monday 31 January 2005 4:05:32 pm

http://ez.no/ez_publish/documentation/configuration/configuration/multi_site

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Marko Žmak

Monday 31 January 2005 4:14:27 pm

No, there's nothing that slves my problem. I'll repeat my main question:

The main idea is that users cannot acces the nodes of Info site through user interface of News site. How do I do that?
(with only one database available)

I couldn't find any topic about this in the docs, does anyone have a sollution for this?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Monday 31 January 2005 8:09:39 pm

So I want to create three sites: News, Forums and Info, and each site to have his own folder as root or something similar. The main idea is that users cannot acces the nodes of Info site through user interface of News site. How do I do that?

NOTE: I have only one database available.

I believe you could do it but it would be complex. Each site would require it's own anoymous user. e.g. create 3 users anon_news, anon_forums, anon_info and in the site.ini files for each of the sites set the anonymous user id to that of the corresponding anon user.

[UserSettings]
# The ID of the anonymous user, this user will
# be used for everyone who is not logged in.
AnonymousUserID=10

You can then assign sections to each of the top level nodes and create roles so that the anonymous users can only read content within their own section.

Another option would be just to set the IndexPage & DefaultPage settings to point to the corresponding top level nodes in each of the siteaccess site.ini files. You woul need to make sure that the templaes didn't display info from the other "sites"

HTH

Cheers
bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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:35:46
Script start
Timing: Jan 18 2025 19:35:46
Module start 'layout'
Timing: Jan 18 2025 19:35:46
Module start 'content'
Timing: Jan 18 2025 19:35:47
Module end 'content'
Timing: Jan 18 2025 19:35:47
Script end

Main resources:

Total runtime0.8508 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.6875152.6250
Module start 'layout' 0.00440.0027 742.312539.4609
Module start 'content' 0.00710.8423 781.7734620.4688
Module end 'content' 0.84940.0014 1,402.242216.1641
Script end 0.8508  1,418.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4115160.0002
Check MTime0.00160.1915160.0001
Mysql Total
Database connection0.00060.068610.0006
Mysqli_queries0.788992.7229650.0121
Looping result0.00060.0735630.0000
Template Total0.818996.220.4094
Template load0.00280.333620.0014
Template processing0.816095.912920.4080
Template load and register function0.00010.011910.0001
states
state_id_array0.00150.178210.0015
state_identifier_array0.00100.116420.0005
Override
Cache load0.00250.2937490.0001
Sytem overhead
Fetch class attribute can translate value0.00050.062230.0002
Fetch class attribute name0.00090.110480.0001
XML
Image XML parsing0.00150.175330.0005
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.00100.1225300.0000
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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs