Pagelayout only for index

Author Message

Daniele Cacace

Wednesday 07 September 2005 2:01:10 am

I must create a pagelayout only for index page!
Do i can?

Eivind Marienborg

Wednesday 07 September 2005 2:08:27 am

Create your own pagelayout template, and make it override on your index page node id.

Example of what you insert in your override.ini.append.php:

[index_pagelayout]
Source=pagelayout.tpl
MatchFile=index_pagelayout.tpl
Subdir=templates
Match[node]=2

This will output the design/siteaccess/override/templates/index_pagelayout.tpl on node 2.

Hope this made sense.. :)

J-A Eberhard

Wednesday 07 September 2005 2:09:20 am

Yes,
The home page is the node number 2.
You can do it through the admin interface by overriding the template for this node or by using this
[homepage]
Source=pagelayout.tpl
MatchFile=homepage.tpl
Subdir=templates
Match[node]=2
in your settings/siteaccess/<your design>/override.ini.append.php

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Daniele Cacace

Wednesday 07 September 2005 6:12:18 am

TNX :D

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 19 2025 07:27:49
Script start
Timing: Jan 19 2025 07:27:49
Module start 'layout'
Timing: Jan 19 2025 07:27:49
Module start 'content'
Timing: Jan 19 2025 07:27:49
Module end 'content'
Timing: Jan 19 2025 07:27:49
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1563152.6250
Module start 'layout' 0.00550.0035 741.781339.4453
Module start 'content' 0.00900.0052 781.226693.4453
Module end 'content' 0.01410.0021 874.671934.3047
Script end 0.0162  908.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.0579140.0002
Check MTime0.00116.7947140.0001
Mysql Total
Database connection0.00074.223610.0007
Mysqli_queries0.002917.943730.0010
Looping result0.00000.092510.0000
Template Total0.001710.310.0017
Template load0.00095.509210.0009
Template processing0.00084.751910.0008
Override
Cache load0.00063.624810.0006
General
dbfile0.00031.992980.0000
String conversion0.00000.036740.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