Specific Content with Specific Site Design: Round 2

Author Message

RW Wood

Friday 19 September 2003 5:40:58 pm

As I gradually get the hang of version 3, I still haven't seen a solution for this problem: I have a site that is divided into several sections, each representing a country. The site designs for every country are identical with the exception of some minor things like a banner image and colors that are set by a style sheet. I can essentially make changes site wide to the layout by simply changing the pagelayout.tpl that I have set as the "standard". If I plug www.mysite.com/index.php/argentina into the browser, the argentina site design folder gets accessed, and the right image and style sheet are used. If I change to another country in the browser bar, that country's images and stylesheet get used.

The problem is, I want certain articles and other content to be viewable only via one country's site design. In other words, if I post an article on Argentina's beef industry, I don't want it viewable in the Peru site design, but only in the Argentina site design. So far no one has been able to tell me how to accomplish this unless I use many pagelayout.tpl files naming them peru_pagelayout.tpl, etc. That means changing everyone of them eveytime I wan't to make a site wide layout change, add a new include, or whatever.

It seems that there must be a relatively easy way to do this, but as much as I've searched the docs, I have not been able to find an answer. I have everything else, including multilanguages working, but I can't figure out how to separate content based on site design.

Thanks for any and all help.
RWW

Bård Farstad

Monday 22 September 2003 7:46:30 am

Currently this is "not supported" however it's quite possible to do. Normally you should only have one admin with ContentObject locale=eng-GB (or whatever is the main/default translation). Objects created on this admin site will then be visible on all translated sites.

If you then create one admin interface for each site with ConentObjectLocate=nor-NO (your current locale), you will be able to create objects which only are visible in that language.

This works, but it's actually a mis-configuration and not an intended feature. Mabye we can just call it a new feature? ;)

Hope this helps,

--bård

Documentation: http://ez.no/doc

RW Wood

Monday 22 September 2003 8:49:57 am

Bård,

Thanks for your reply, however the language issue for me is not the issue :) What is the issue, is the inability to have, for example, articles related to Argentina show up **only** with the Argentina site design. In version 2, I accomplished this by giving each country its own section, site design, and category. That of course mandated maintaining a pagelayout template for each country.

I was hoping that with the override system, I could get away from separate templates for each site design and only have small pieces to maintain individually.

Isn't there any way to direct ezP to use a specific site.ini.append based on which folder or article is selected?

RW Wood

Monday 22 September 2003 7:37:58 pm

I figured a work around to the problem described in the URL above: replace the folder specific sections with a hard coded url that's then put in an included file. Assign a section to each folder and use an site wide override template for each section that's different. Since fortunately there were only two includes needed for each site design, it wasn't much work.

Hope this helps someone else figure out this problem.
RWW

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.