different homepage layout and page layout

superpaul - June 30, 2009 - 02:47

Hi guys,

Is it possible to create a different homepage layout and a page content layout?

but the header and the footer layout would be the same on the homepage and a single page content layout.

If it is possible, can you give me some tips on how to do that, a sample theme having that behavior would be helpful.

thanks!

=-=

VeryMisunderstood - June 30, 2009 - 02:59

create a page-front.tpl.php for your theme
copy the contents of page.tpl.php of your your theme to the newly create page-front.tpl.php

hack away at page-front.tpl.php
save the file

visit administer -> themes

pull your hom page up in your browser and it should now be using page-front.tpl.php to theme the homepage.

alright! thanks for the quick

superpaul - June 30, 2009 - 03:08

alright!

thanks for the quick response.. Is there a reference or a documentation site for this theme creation, with all the possible files to be included not just the basic files like page.tpl.php, block.tlp.php and etc.

thanks!

=-=

VeryMisunderstood - June 30, 2009 - 03:09

theme developers guide in the documentation area.

devel.module is a great help too.

 
 

Drupal is a registered trademark of Dries Buytaert.