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

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

eZ debug

Timing: Jan 30 2025 21:38:00
Script start
Timing: Jan 30 2025 21:38:00
Module start 'layout'
Timing: Jan 30 2025 21:38:00
Module start 'content'
Timing: Jan 30 2025 21:38:00
Module end 'content'
Timing: Jan 30 2025 21:38:00
Script end

Main resources:

Total runtime0.0257 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1328151.2109
Module start 'layout' 0.00690.0044 739.3438220.6875
Module start 'content' 0.01130.0128 960.03131,001.9141
Module end 'content' 0.02420.0015 1,961.945337.9922
Script end 0.0256  1,999.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.2781140.0002
Check MTime0.00124.6106140.0001
Mysql Total
Database connection0.00103.780710.0010
Mysqli_queries0.003312.688130.0011
Looping result0.00000.050110.0000
Template Total0.00104.110.0010
Template load0.00083.156910.0008
Template processing0.00020.887410.0002
Override
Cache load0.00062.199910.0006
General
dbfile0.00031.242080.0000
String conversion0.00000.104940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs