How to show an article from site 1 in site 2

Author Message

Mark Overduin

Friday 12 September 2003 3:14:48 am

I didn't really know how to put my question into just one sentence (for the title of this thread)

Ok, I'll try to explain:

I have two sites (i.e. '/sites/Site1' and '/sites/Site2').
I want some articles of Site1 to be displayed in Site2 and vice versa.

Site1 has a completely different layout than Site2.
Now, how do I show an article from Site2 ('/sites/Site2/Article3') in Site1 (without using Site2's layout)?.

Right now, in Site1, if I link to an article that 'belongs' to Site2, I get Site2's layout. I don't want that. I'd like the user to have/get the feeling they are still on the same site.

- - -
Site structure:

Root
|_sites
...|_Site1
......|_Article1
......|_Article2
...|_Site2
......|_Article1
......|_Article2
......|_Article3
- - -

Hope anyone can help me out.

Thanx in advance!

-- Mark

Sam Wong

Saturday 13 September 2003 9:39:04 pm

Sorry for being off topic... I would like to know two things.

How did you get one copy of ezPublish to publish 2 different site content?

Where do you put ezPublish program?

Thanks!

Paul Borgermans

Sunday 14 September 2003 1:57:09 am

Mark,

You should basically create two sites (siteaccess+sitedesign), but pointing to the same database. As far as I understand your explanation, you are now using two sections for your two sites. That's giving the problems you describe.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Mark Overduin

Friday 19 September 2003 5:54:56 am

Sam:
It's really easy to set up more sites using only one ezPublish. Right now, I'm using one 'pagelayout.tpl'. According to the 'id', it displays its content.
The 'id' I'm talking about here are different domain names pointing to an 'overall' site, which handles the content. Domain1 points to the id of site1, domain2 points to the id of site2.

Example:
domain1 => site1.id = 20 => overall site shows: everything where id=20
domain2 => site2.id=30 => overall site shows: everything where id=30

I use only one pagelayout.tpl, because these sites are all connected to each other and I want them to have exactly the same layout (not the images of course, because they are 'dynamically', just like the content).

If you want to use completely different layouts for your sites, you should use different sections. In that case, you still have site1 (with id=20) and site2 (with id=30), but since you defined different sections (and thus different pagelayout.tpl's) the sites have different layouts.

Hope this helps...

= = = = = = = = = =

Paul:
I think you already know what I did, I tried to explain this in my reply to Sam.
Thanks for your help, but I don't think that solution suits me. Right now I'm talking about 2 sites, but I'm planning to build more. Like, 20 or so? And if I have to create 20 different siteaccesses... aaaaah, I can already visualize me drewling in a mental hospital :D

Anyways, I know now ezPublish cannot handle it the way I want (which makes perfect sense, I'm not dissapointed or anything)

Thanks.

-- Mark

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 19 2025 01:02:17
Script start
Timing: Jan 19 2025 01:02:17
Module start 'layout'
Timing: Jan 19 2025 01:02:17
Module start 'content'
Timing: Jan 19 2025 01:02:17
Module end 'content'
Timing: Jan 19 2025 01:02:17
Script end

Main resources:

Total runtime0.5838 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 593.2500152.6406
Module start 'layout' 0.00550.0033 745.890639.4766
Module start 'content' 0.00880.5734 785.3672590.9453
Module end 'content' 0.58230.0015 1,376.312512.1250
Script end 0.5837  1,388.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5456160.0002
Check MTime0.00130.2251160.0001
Mysql Total
Database connection0.00090.151810.0009
Mysqli_queries0.525389.9821620.0085
Looping result0.00060.1050600.0000
Template Total0.552994.720.2764
Template load0.00200.338320.0010
Template processing0.550994.365220.2754
Template load and register function0.00020.037510.0002
states
state_id_array0.00100.166510.0010
state_identifier_array0.00070.113020.0003
Override
Cache load0.00170.2859530.0000
Sytem overhead
Fetch class attribute can translate value0.00060.096430.0002
Fetch class attribute name0.00100.170050.0002
XML
Image XML parsing0.00070.121830.0002
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00180.3020170.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
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs