What is the best practise to design a front page in Drupal using different blocks. I know how to do the css etc, but I need advice on the best Drupal approach.

I have attached the design I want to achieve. As you see there are a lot of different blocks in the frontpage. Do I need to create a custom template file for the frontpage and hardcode the blocks into that, or is there a better or more clever way?

Comments

davidwhthomas’s picture

Consider using the Panels module instead ( http://drupal.org/project/panels )

gjangelo’s picture

I made block areas specifically for the home page, then "unset" them for all other pages.

in the page.tpl.php ....

if (($is_front) && ($page == 0)) {
    unset ($title); // suppresses the h1 title on the homepage.
    unset ($content); // suppresses the content area. Use if your home page contains only blocks.
    unset ($breadcrumb); // the "home" link looks bad on its own. suppress breadcrumb on the homepage.
    $is_homepage = "true"; // set a variable for use later in the page.
    
} else {
    /* unset the block regions that only belong on the homepage */
    unset ($home_left);
    unset ($home_center);
    unset ($home_right);
}