How to check current page is home/frontpage in joomla 1.5.23

On website joomla 1.5.23, we only want to show something on homepage but not showing on other pages. What code, and how to solve this problem? Below is a way that I want to show to you:
Source Code
<?
$menuitem = & JSite::getMenu();
if ($menuitem->getActive()->name == "Home" && $_GET[page]=="")
{
       echo "Boldownload.com hello the world";
}else
{
      //not homepage
}
?> 

No comments:

Post a Comment