share content between different sites ?

Author Message

Fabio Carissimi

Friday 03 March 2006 8:44:06 am

Hello,

I have to setup a multi-multilanguage site installation and want to know how
to share content between these sites.

I have a main site, let we call it (mainsite) and several other sites (let we call them subsite1,subsite2 ...).

For differents reasons, I choose to setup theses sites in the same server
(so same Apache, same MySQL, same EzPublish) but
with a database for each site and a folder in /var for each site.

/var/
	/mainsite
	/subsite1
	/subsite2
	/subsite3
	/...

obviously I have a siteaccess for each site and a design for each site

/settings/siteaccess/
		/mainsite
		/subsite1
		/subsite2
		/...

/design/
	/mainsite
	/subsite1
	/subsite2
	/...

First, I want to know how to do it without taking care of multi-language fonctionnality.
(Please tell me if it makes the problem different.)
Some content should appear in the main site and also in the subsites.
For example, the front page of each subsite should contain a presentation,
the main site should be able to access this content and display it.

And www.mainsite.com/subsite1/presentation and
www.subsite.com/presentation
should have the same content but different templates.

I don't care if I have to edit the content in the main or in the subsite
but I think it would be better to edit it in the subsite.

Somebody has any idea of how to access to a content belonging to subsite1
from mainsite?

It is a EzPublish 3.7.2 Server on a Linux server.

I would appreciate any advice because it is the first time I use EzPublish
and I want to begin in the right way because it is a big project.

Many thanks for your help.
Fabio

Fabio Carissimi

Thursday 09 March 2006 12:55:45 am

Nobody has something to tell about it ?
Does someboddy try a solution : extension module, rss ?

Thanks for your help.

Xavier Dutoit

Thursday 09 March 2006 1:09:41 am

Hi,

I'd suggest you to use the same db for all your sites and use different sections for your different sites.

X+

http://www.sydesy.com

Fabio Carissimi

Thursday 09 March 2006 2:06:40 am

Thanks for the suggest but we choose to have different db and var because we will have a lot of sites and each site will have a different administrator.
In each site, the administrator must be able to define his own sectionning, workflow, etc ... so your solution can't fit my needs.

Do you have any other idea ? Do you test RSS ?

Fabio Carissimi

Monday 27 March 2006 1:08:44 am

Hello,

nobody can help me ?
I know this is not an easy issue and I don't want to have all my problem solved by an answer in this forum
but I would really appreciate an advice from Ez Crew members, just some suggestions and some
particular things to take care of.

thanks for help

Heiner Wurbs

Monday 27 March 2006 1:22:22 am

Hi!
I would also recommend one database, because the eZ system itselfs operates with its main features only in one database.

A solution could be (but I wouldnt do that) to use the object export

setup / packages / create new package /  Content object export

On the other site you can make an import.
But anyway, I recommend one database and define the user roles so that it fits the requirements.
Heiner

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 22:31:48
Script start
Timing: Jan 18 2025 22:31:48
Module start 'layout'
Timing: Jan 18 2025 22:31:48
Module start 'content'
Timing: Jan 18 2025 22:31:49
Module end 'content'
Timing: Jan 18 2025 22:31:49
Script end

Main resources:

Total runtime0.7743 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1641152.6406
Module start 'layout' 0.00610.0033 741.804739.4766
Module start 'content' 0.00930.7636 781.2813614.5000
Module end 'content' 0.77290.0014 1,395.781316.1406
Script end 0.7743  1,411.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4169160.0002
Check MTime0.00130.1705160.0001
Mysql Total
Database connection0.00080.107310.0008
Mysqli_queries0.710291.7237680.0104
Looping result0.00070.0844660.0000
Template Total0.738395.420.3692
Template load0.00190.250720.0010
Template processing0.736495.101520.3682
Template load and register function0.00020.020010.0002
states
state_id_array0.00220.287410.0022
state_identifier_array0.00100.132120.0005
Override
Cache load0.00170.2248580.0000
Sytem overhead
Fetch class attribute can translate value0.00040.056230.0001
Fetch class attribute name0.00130.172770.0002
XML
Image XML parsing0.00070.095930.0002
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00070.0932160.0000
String conversion0.00000.001140.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs