Closed (fixed)
Project:
Drupal core
Version:
4.7.4
Component:
theme system
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
12 Dec 2006 at 15:25 UTC
Updated:
27 Dec 2006 at 02:15 UTC
Hi I am working on the pushbutton theme. How can I create seperate page.tpl files for different pages (Like different page.tpl for index... )
Comments
Comment #1
Crell commentedI know there's a handbook page on it somewhere, but I can't seem to find it right now. What I do is put the following in my page.tpl.php:
And then page-home.tpl.php and page-main.tpl.php have the real content. You can, of course, have however many if-elseif statements you need and use whatever checks you need. ($is_front, checking the path with arg(), whatever.)
Comment #2
simeBunch of examples here (links at the bottom).
http://drupal.org/node/46006
Comment #3
(not verified) commented