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!

eZ debug

Timing: Jan 18 2025 10:16:54
Script start
Timing: Jan 18 2025 10:16:54
Module start 'content'
Timing: Jan 18 2025 10:16:54
Module end 'content'
Timing: Jan 18 2025 10:16:54
Script end

Main resources:

Total runtime0.2920 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.0703180.8125
Module start 'content' 0.00780.0071 769.8828106.1016
Module end 'content' 0.01490.2770 875.9844534.6719
Script end 0.2919  1,410.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.1947200.0002
Check MTime0.00140.4888200.0001
Mysql Total
Database connection0.00180.631510.0018
Mysqli_queries0.240182.23081410.0017
Looping result0.00160.56361390.0000
Template Total0.276794.710.2767
Template load0.00090.292910.0009
Template processing0.275894.451610.2758
Override
Cache load0.00060.206210.0006
Sytem overhead
Fetch class attribute can translate value0.00080.278410.0008
XML
Image XML parsing0.00030.089710.0003
General
dbfile0.00561.9163200.0003
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs