By ljet on
I'd like to create the custom front page with my own design which excludes left and right side bars.
From that custom front page, after i click on the text, it goes to the default home page which includes left, right and contents.
How can i create this custom front page/theme in drupal 4.7?
Please advise me.
Thanks in advance.
Comments
you can
hi,
You can put php code at the top of page.tpl like..
and then copy page.tpl , rename it as front-page.tpl and remove side_bar left and side_bar right regions in front-page.tpl
Cheers!
Many Thanks.
Many Thanks.
I get the following error
I get the following error with that code:
Parse error: syntax error, unexpected '}' in C:\wamp\www\drupal-6-3upgr\themes\marinelli\page.tpl.php on line 11
I have front-page.tpl.php created and adjusted the code accordingly. The code gives no errors if I put a semicolon after return. What's going on here??
Will the inverse of this
Will the inverse of this work? Can I have a site with columns only on the front page in Drupal 6?
Try this...
You can create two files 'page.tpl.php' and 'page-front.tpl.php', drupal will consider page-front.tpl.php only for the front page and page.tpl.php for all other pages. Now show the left and right regions only in page-front.tpl.php and remove them from page.tpl.php
Frontpage module
Have you tried the frontpage module?
It is configurable as to what you can display and to whom...
I've jsut installed it.
Thanks
John