By end user on
I need some help on combing the code on the following pages so that its possible to switch both node-alias.tpl.php and page-alias.tpl.php templates
Different page templates depending on URL aliases
http://drupal.org/node/139766
and
Different node templates depending on URL aliases
http://drupal.org/node/117491
Thanks
Arek
Comments
I think this will combine the two
I thiink this will do the trick though it untested
Hi
Hi
Works for page_template1.tpl.php but when I create a node_template1.tpl.php the template (page_template1.tpl.php) is not read and stripped out and only shows the node-template1.tpl.php as the main template.
Thanks
Arek
Lets try again
II should have read the node example a little closer.
How about this
Haven t had time to test
Haven t had time to test this out as I went with the taxonomy theme way but will try it out later today.
Tried it and it works so
Tried it and it works so far. Even works with the Taxonomy Theme module.
Just a follow up
I had a problem with Taxonomy Theme not showing some blocks on certain themes. I got rid of Taxonomy Theme and I've switched to using the code posted here and its been working pretty good so far.