[support] Drupal Homepage

Jason Flatt drupal at oadae.net
Fri Jun 30 13:03:16 UTC 2006


On Friday 30 June 2006 03:34, Mark Shropshire wrote:
> I imagine that the they are checking to see if the user is on the
> home page using "if ($page == 0)" in page.tpl.php. Custom home page
> only code can be placed inside this conditional check like:
>
> <? if ($page == 0) { ?>
>
> html.. more php...etc here for home page use only..
>
> <? }; ?>

Umm, yeah, except that there is no semi-colon after the closing brace. For 
more details on this front page topic, a handbook page has been created:

http://drupal.org/node/46017

> That is how to get it to show up only on the home page. You can view
> the css and html source to see how they did the actual design.

-- 
Jason Flatt
http://www.oadae.net/
Father of Six:  http://www.flattfamily.com/ (Joseph, 13; Cramer, 11; Travis, 
9; Angela; Harry, 5; and William, 12:04 am, 12-29-2005)
Linux User:     http://www.sourcemage.org/
Drupal Fanatic: http://drupal.org/


More information about the support mailing list