Forums / Setup & design / share content between different sites ?

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

eZ debug

Timing: Jan 18 2025 19:40:15
Script start
Timing: Jan 18 2025 19:40:15
Module start 'content'
Timing: Jan 18 2025 19:40:17
Module end 'content'
Timing: Jan 18 2025 19:40:17
Script end

Main resources:

Total runtime1.6481 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.8281180.8281
Module start 'content' 0.00771.4938 768.6563619.5938
Module end 'content' 1.50150.1466 1,388.2500337.0703
Script end 1.6480  1,725.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2662210.0002
Check MTime0.00150.0932210.0001
Mysql Total
Database connection0.00100.058310.0010
Mysqli_queries1.557894.52352050.0076
Looping result0.00260.15542030.0000
Template Total1.612497.820.8062
Template load0.00210.128020.0011
Template processing1.610297.704020.8051
Template load and register function0.00030.015710.0003
states
state_id_array0.00100.057710.0010
state_identifier_array0.00160.097020.0008
Override
Cache load0.00180.1103580.0000
Sytem overhead
Fetch class attribute can translate value0.00270.162340.0007
Fetch class attribute name0.00110.065770.0002
XML
Image XML parsing0.00110.065340.0003
class_abstraction
Instantiating content class attribute0.00000.000870.0000
General
dbfile0.00230.1379270.0001
String conversion0.00000.000430.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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