Different page layout for different folders

Author Message

Charles Tanton

Friday 02 December 2005 4:22:08 am

Would it be possible to specify a different page layout for different folders on a site? For example, a different header image and style sheet that is used when displaying the folder as well as when displaying content items within the folder.

http://www.parkroad.co.za

Lazaro Ferreira

Friday 02 December 2005 7:35:41 am

Hi,

two ways :

1) Override pagelayout.tpl for your folder node

2) Create a section , and set your folder to this section, then override your pagelayout.tpl for this section

Lazaro
http://www.mzbusiness.com

Charles Tanton

Friday 02 December 2005 7:53:23 am

Thanks Lazaro!

http://www.parkroad.co.za

Lemaitre Johann

Wednesday 15 February 2006 5:47:26 am

Hi,

You explain that we have two ways to override a template for a specific folder :

Could you give me more details because I don't understand exactly how can I configure your advices

Thanks
Johann

Marc Boon

Thursday 16 February 2006 5:36:20 am

Look here for a detailed explanation and example of template overrides:
http://ez.no/doc/ez_publish/technical_manual/3_6/templates/the_template_override_system/template_override_example

laurent le cadet

Friday 17 February 2006 2:07:45 am

Salut,

A similar "problem" : http://ez.no/community/forum/setup_design/design_changes

Laurent

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 31 2025 01:26:34
Script start
Timing: Jan 31 2025 01:26:34
Module start 'layout'
Timing: Jan 31 2025 01:26:34
Module start 'content'
Timing: Jan 31 2025 01:26:34
Module end 'content'
Timing: Jan 31 2025 01:26:34
Script end

Main resources:

Total runtime0.0283 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.3984151.2266
Module start 'layout' 0.00550.0048 740.6250220.7188
Module start 'content' 0.01040.0162 961.34381,001.8359
Module end 'content' 0.02660.0017 1,963.179733.9922
Script end 0.0283  1,997.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003110.8235140.0002
Check MTime0.00113.9579140.0001
Mysql Total
Database connection0.00082.757010.0008
Mysqli_queries0.002910.357230.0010
Looping result0.00000.130410.0000
Template Total0.00124.410.0012
Template load0.00093.268710.0009
Template processing0.00031.076410.0003
Override
Cache load0.00062.184710.0006
General
dbfile0.00134.662380.0002
String conversion0.00000.032040.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.0002 secs