Use of overrides in fallback design

Author Message

Eirik Alfstad Johansen

Wednesday 12 November 2003 11:52:02 am

Hi,

We are creating a site which uses one site design for the company, and a separate site design for each of our products. Since the color is mainly what varies from product to product site, I would like the product site designs to fall back on the company site design. So, I put the following in the siteaccess of my product page:

[DesignSettings]
SiteDesign=product_design
StandardDesign=company_design

However, now the product pages display mainly emtpy spaces where the company_design templates should be fetched. I've created nearly all of the company_design templates as overrides, so I'm wondering if that could be the problem. Are the template overrides of the StandardDesign considered or not? And what else could be wrong?

Thanks in advance !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Forsyth

Thursday 13 November 2003 1:21:24 am

Changing the StandardDesign is dangerous because it holds all of the defaults for templates. Unless you've overridden every 'standard' template then you may experience gaps.

Are you finding errors being reported?

paul

Eirik Alfstad Johansen

Thursday 13 November 2003 4:54:38 am

Hi Paul,

It might be better if I try to explain what I'm trying to do, and have you suggest a solution, if you would.

For the company site, I have created several template overrides. One of these is an override for the forum class in line view mode. Now, I would like the product site to use the same override for the forum class in line view mode because it makes use of the same forum, but I would like to avoid having to specify it as an override for the product site as well.

Also, for all templates that do not exist in neither the product nor the company site, I would like a fallback on the standard site design.

Is this doable?

Thanks in advance !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eckhard Schnell

Thursday 13 November 2003 6:00:19 am

Hello Eirik,

may be you can use the AditionalSiteDesignList[] in site.ini.

In the forum is an example with images.
http://ez.no/developer/ez_publish_3/forum/developer/multilingual_site_images

Try the following settings:
---------
[DesignSettings]
SiteDesign=product_design
...
AditionalSiteDesignList[]=company_design
....
StandardDesign=standard
-------

Eckhard Schnell
Siemens Business Services

Eckhard Schnell
Siemens Business Services http://www.sbs.de
Privat: http://www.2schnell.de

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