Theme Implimentation for Drupal 6
public
group: Drupal Dojo
heshanmw - Wed, 2008-07-02 04:52
Hi
I used a Drupal 6.2 for the my personal site I want to know whether it is possible to have three column in front page and two column for other pages.
Thanks
Heshan



Ical feed
Many ways but...
Many ways but you don't give details on your aptitudes.
Are you a front user, a developper, a themer ?
Have you tried the panels module ?
If you know PHP and are able to edit your theme, you can redirect the template specifically to a path :
in your case by using the API function "drupal_is_front_page".
This function return a boolean that indicate you if you're on the front page or any other pages.
I'm sorry, I didn't yet use D6 (or so much little), but in D5 you can do this in the template.php :
<?phpfunction phptemplate_preprocess_page(&$vars) {
...
if (
drupal_is_front_page()) {$vars['template_file'] = 'page-3cols';
}
...
?>}
And prepare 2 main templates : page.tpl.php with two cols and page-3cols.tpl.php with three cols.
Another way will be to do a single page.tpl.php with block regions expendable if one of them is empty.
I hope this will help you.