Forums / Developer / ez using an other pagelayout

ez using an other pagelayout

Author Message

Tchu Light

Tuesday 10 February 2009 1:44:18 am

Hello,
First, I am new to eZ publish and English, so be indulgent plz.
I'have installed recently ez-publish and ezwebin, and I want to Know why ez use ezwebin's pagelayout instead of useing the standard one (www\ez\design\standard\templates\pagelayout.tpl) ?!! I checked every config file hoping to find some lines that tells ez to override pagelayout (override.ini.append.php) but I didn't find anything, I read "the tech manual" but they don't mention it anywhere. So can somebody explain to me how that' work ? plz.
best regards.

Stéphane Bullier

Tuesday 10 February 2009 2:37:53 am

Hello,

Welcome.

You have to check in site.ini.append.php of siteaccess frontend, this setting :

[DesignSettings]
SiteDesign=folder_design_name

and change the name with your folder design.

Stéphane

André R.

Tuesday 10 February 2009 3:51:54 am

Its because you can define several active designs for a siteaccess, witch lets you have multiple fallbacks.
Normally you'd have something like
1.'your_design' (override for your custom site)
2. flow (if you use ezflow)
3. webin
3. standard

And for admin you'd have:
1. admin
2. standard

This is configurable using the setting mentioned above by Stéphane, as well as the AdditionalDesign setting and StandardDesign setting in site.ini.

So in the example you mention you have 'placement overrid' in effect, and there is no need to use any overide.ini condition to make it work. override.ini overrides are for conditional overrides(like for a specific node or class), placement overrides are for global 'override'.

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

Tchu Light

Tuesday 10 February 2009 8:06:22 am

Thank you very much fo your answers,
in my configuration I have

[DesignSettings]
SiteDesign=ezwebin

so I think that ez normaly must go search in www\my-site\design to find a folder named "ezwebin" but in this path (www\my-site\design) I don't have this folder, so
he look for the folder in www\my-site\extension\ezwebin\design\ezwebin.

1/ he look in www\my-site\design and when ez don't find "ezwebin".
2/ he look for ezwebin in www\my-site\extension

Thanks.

André R.

Tuesday 10 February 2009 8:55:59 am

1 design (like 'standard' or 'ezwebin') can have several placements, the order of this kind of fallback is:
1. design in extensions in the order the extensions are loaded
2 design/ folder

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

eZ debug

Timing: Jan 18 2025 05:01:55
Script start
Timing: Jan 18 2025 05:01:56
Module start 'content'
Timing: Jan 18 2025 05:01:57
Module end 'content'
Timing: Jan 18 2025 05:01:57
Script end

Main resources:

Total runtime1.3960 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.7109180.8359
Module start 'content' 0.00791.1674 768.5469611.6797
Module end 'content' 1.17530.2206 1,380.2266337.3750
Script end 1.3959  1,717.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3157210.0002
Check MTime0.00160.1179210.0001
Mysql Total
Database connection0.00140.103710.0014
Mysqli_queries1.293792.66982020.0064
Looping result0.00250.17772000.0000
Template Total1.362197.620.6811
Template load0.00190.134120.0009
Template processing1.360297.439720.6801
Template load and register function0.00020.015510.0002
states
state_id_array0.00170.120310.0017
state_identifier_array0.00230.165320.0012
Override
Cache load0.00160.1125410.0000
Sytem overhead
Fetch class attribute can translate value0.00140.098540.0003
Fetch class attribute name0.00130.093970.0002
XML
Image XML parsing0.00130.093140.0003
class_abstraction
Instantiating content class attribute0.00000.001180.0000
General
dbfile0.01511.0829340.0004
String conversion0.00000.000430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs