Forums / Setup & design / How to show an article from site 1 in site 2

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