Forums / Setup & design / ezwebin: Multiple domains and different designs for each

ezwebin: Multiple domains and different designs for each

Author Message

Henrik Farre

Thursday 27 September 2007 7:53:50 am

Hi

I'm developing a site for a client, and the site uses the ezwebin extension.

I have followed the instructions from http://ezpedia.org/wiki/en/ez/overriding_the_ez_web_interface_ezwebin_with_custom_designs to create a new design for the ezwebin extension.

Now I've run into trouble: The site needs 3 new "sub sites", i.e. 3 different domains and 3 different designs.

My initial idea was to create 3 new copies of the extension, create 3 new siteaccess', each pointing to different RelatedSiteAccessList, SiteDesign and so forth...

I added each of the copies to ExtensionSettings in settings/override/site.ini.append.php . But the last line before ActiveExtensions[]=ezwebin always overrides the other ones.

How do I go about using the ezwebin extension with 3 different designs, one for each domain?

Bellcom Open Source < http://www.bellcom.dk >, Tel: +45 70 26 00 85
eZ Publish, Drupal, SugarCRM

Valentin Svelland

Sunday 06 January 2008 2:12:28 pm

Hi, did you find a solution to this problem Henrik?

I was thinking of rewriting line 27 of pagelayout.tpl in the original ezwebin-extension to fetch the desired template look object based on siteaccess ($access_type.name). This could be done by altering the array number of $pagedesign_class.object_list[0]) but I guess this is no good solution as this in fact forces the same layout and css on every site. Only logo and other paramteres of template look class would separate the pages..

It's really weird that eZ 3.9.4 does not support different design extensions to be linked to different sites based on siteaccesses.

Perhaps someone figured out an easy way out of this? Please reply! :)

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

André R.

Sunday 06 January 2008 2:39:09 pm

>I added each of the copies to ExtensionSettings in settings/override/site.ini.append.php.
>But the last line before ActiveExtensions[]=ezwebin always overrides the other ones.

You shouldn't need to create a extension for each design, but it doen't really matter since the moste important part is that all the 3 designs have their own design name.

settings/siteaccess/page1/site.ini.append.php:

[DesignSettings]
SiteDesign=page1_design
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base

Extensions structure:

extension
| -ezwebin
| -design_extension
| | -- design
| | | --- page1_design
| | | | ---- images
| | | | ---- stylesheets
| | | | ---- templates
| | | --- page2_design
| | | | ---- images
| | | | ---- stylesheets
| | | | ---- templates
| | | --- page3_design 
| | | | ---- images
| | | | ---- stylesheets
| | | | ---- templates
| | -- settings

But there is another problem though, you need to override pagelayout to stop using the template_look / site settings class. Since it's far from multisite safe!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Valentin Svelland

Sunday 06 January 2008 2:51:37 pm

Are you saying that inserting several subdirectories into "/extension/ezwebin/design/" in addition to "/extension/ezwebin/design/ezwebin" is possible?

For example:

/extension/ezwebin/design/ezwebin (org. folder)
/extension/ezwebin/design/design1 (new folder)
/extension/ezwebin/design/design2 (new folder)

If so, does these new folders need to contain all of the filestructure in /extension/ezwebin/design/ezwebin or is it possible to just insert the files which I want to override the standard settings?

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

Valentin Svelland

Sunday 06 January 2008 3:09:57 pm

I'll answer that myself: yes you are saying just that!

I created a folder as you suggested and put one file inside its template-folder, namely pagelayout.tpl, and changed the template look object by changing the array-number mentioned in my earlier post of this thread..

Sweet Moses, this works! Hopefully css and layout will both play nice when overriding this way. I haven't tested much yet, but all this makes me wonder what's the use of this article anyway:

http://ezpedia.org/wiki/en/ez/overriding_the_ez_web_interface_ezwebin_with_custom_designs

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

Henrik Farre

Monday 14 January 2008 2:57:41 am

Great! Now I only have to find the time to undo the mess I made :)

Bellcom Open Source < http://www.bellcom.dk >, Tel: +45 70 26 00 85
eZ Publish, Drupal, SugarCRM

Valentin Svelland

Monday 14 January 2008 6:28:26 am

No prob. You should also check out my new guide. After searching all over the forum for bits and pieces on how to do a multiple site installation I decided to write all my experiences in one place;

http://ez.no/developer/forum/setup_design/valentin_s_multisite_guide_v_1_example_uses_ezp_v_3_9_4

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!