By drupalomino on
On a Drupal-powered site, can you easily deviate from the theme for a few pages? If so, how?
On a few pages of my site, I want to maintain the basic layout structure but display "overlay" & other graphics that significantly change the appearance of those pages.
Can you write an alternate/secondary template and display it selectively on a website? Can you selectively include/use alternate CSS layouts?
(BTW, I'm a Drupal n00b planning to install Drupal for the first time for a site I'm designing.)
Comments
Node Page Template Module by denraf
http://drupal.org/project/node_page
This module seems like it may accomplish what I'm after. Has anybody used it?
It's easy
Just make a copy of your page.tpl.php and strip out everything you don't need and rename it page-PAGENAME.tpl.php for each instance.
So page-football.tpl.php has a different template than the rest of the site. example.com/football would then use that page template.
Thank you
Thanks, BradleyT
I was hoping it would be easy. Then I guess I'm assuming Drupal resolves this automatically and no extra logic is needed.
The Devel is your friend
Devel Theme Developer will let you know the names of template files that you can use on any given page of your site. It's an awesome tool.
http://drupal.org/project/devel
However I wouldn't use Devel on a production site, just on your development site.
Node-specific templates
For others interested in this thread, I also found this page that explains how to allow node-specific templating in Drupal 4.7, 5, and 6. The capability is apparently built into version 7.
"Separate node template for a specific node"