By mileZ on
The Problem:
I want to have a different layout for each section of the site.
I tried first with taxonomy theme and that works great but, only for the new nodes I create.
Is there a solution to create a different layout for every page in drupal?
ex:
node/add has his own layout or node/add/page has his own layout.
I hope u can help me.
Thnx
Comments
page-node.tpl.php
Check out:
Using different page templates depending on the current path
http://drupal.org/node/104316
Also see:
Different node templates depending on URL aliases
http://drupal.org/node/117491
I tried
Hi jWolf,
thank you for your replay.
I tried page-node.tpl.php and it works very well but not for the taxonomy terms.
So I also tried the second option. But I think I'm doing some (newbie) mistakes.
in My template.php I've added:
but when I reload my page I have this:
Fatal Error: Cannot redeclare _phptemplate_variables() (proviously declared in c:\...\themes\mytemplate\template.php:57) in c:\...\themes\mytemplate\template.php on line 130
On line 57 I have this:
Do I have to delete the last one?
And how do I define:
Thank you!!
mileZ
Use your theme's name
Use your theme's name (Garland)
example: