Forums / Setup & design / Please help me with sections...

Please help me with sections...

Author Message

enigmista enigmista

Thursday 24 July 2003 6:17:25 am

In ez2 there is a powerfool tools: section. With it i will can change the global pagelayout... with ez3?

Alex Jones

Thursday 24 July 2003 7:23:12 am

If you define a section you can then change the templates in override.ini.append for that entire section. So you can easilymake a section look totally different than other parts of the site.

Once a section is created you simply add an entry like the following to /settings/siteaccess/YOURSITE/override.ini.append to tell it to use a different template:

[pagelayout_different]
Source=pagelayout.tpl
MatchFile=pagelayout_different.tpl
Subdir=templates
Match[section]=10

Notes:
Change 'different' to whatever you want it to be - probably the section name would be best.
Make sure the number on the last line is the ID of the section as shown on the Sections page in setup.

I hope this answers your question. :)

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

laurent le cadet

Thursday 24 July 2003 7:28:07 am

Hi,

It's rather different now with eZ 3.1

You don't need any more to declare the section ID in the tpl name, e.g in the demo install pagelayout_mysite.tpl.
- Just name the pagelayout like you want and apply the design you want
- in settings/siteaccess/[your folder e.g demo]/override.ini.append

write few lines for each sections :

[pagelayout_yoursectionname]
Source=pagelayout.tpl
MatchFile=pagelayout_yoursectionname.tpl
Subdir=templates
Match[section]=13

13 (e.g) is the number of the section (yournamesection) you have create in admin.

Clear caches.

It works.

laurent

enigmista enigmista

Thursday 24 July 2003 7:51:04 am

ohh :))) i need this help tnx a lot. It works :))

eZ debug

Timing: Jan 31 2025 01:13:42
Script start
Timing: Jan 31 2025 01:13:42
Module start 'content'
Timing: Jan 31 2025 01:13:42
Module end 'content'
Timing: Jan 31 2025 01:13:42
Script end

Main resources:

Total runtime0.2679 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 587.9297370.2969
Module start 'content' 0.00870.0182 958.22661,001.5156
Module end 'content' 0.02690.2410 1,959.74223,889.3438
Script end 0.2679  5,849.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00521.9277200.0003
Check MTime0.00150.5660200.0001
Mysql Total
Database connection0.00100.378810.0010
Mysqli_queries0.157258.65891410.0011
Looping result0.00160.59161390.0000
Template Total0.240489.710.2404
Template load0.00100.361610.0010
Template processing0.239589.369910.2395
Override
Cache load0.00070.251210.0007
Sytem overhead
Fetch class attribute can translate value0.00200.753210.0020
XML
Image XML parsing0.00030.101910.0003
General
dbfile0.01435.3376200.0007
String conversion0.00000.003130.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.0001 secs