Forums / Setup & design / Pagelayout only for index

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