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

drupalomino’s picture

http://drupal.org/project/node_page

This module seems like it may accomplish what I'm after. Has anybody used it?

BradleyT’s picture

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.

drupalomino’s picture

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.

BradleyT’s picture

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.

drupalomino’s picture

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"