Does anyone know how the custom header in the drupal homepage was achieved...? The section where they announce that drupal 4.7 is out... and also next to it requesting that someone views their webcast on what is different in drupal 4.7.....
Thanks...
Phares K. Kariuki
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..
<? }; ?>
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.
Thanks, Mark
On Jun 30, 2006, at 5:39 AM, Phares Kariuki wrote:
Does anyone know how the custom header in the drupal homepage was achieved...? The section where they announce that drupal 4.7 is out... and also next to it requesting that someone views their webcast on what is different in drupal 4.7.....
Thanks...
Phares K. Kariuki
-- [ Drupal support list | http://lists.drupal.org/ ]
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:
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.
Thanks Jason.. you are right. I actually grabbed this bit from node.tpl.php of the 4.7 bluemarine theme. Also, I just looked and the semicolon is after the closing brackets of other if statements in the bluemarine phptemplate theme. Since PHP doesn't throw an error, I wonder which way is the best practice?
Thanks! Mark
On Jun 30, 2006, at 9:03 AM, Jason Flatt wrote:
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:
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/ -- [ Drupal support list | http://lists.drupal.org/ ]