Monthly Archives: August 2008

How to determine if the user is viewing the Joomla front page

If you're using Joomla! 1.0 then you'll only need to verify the current component with the following command:
PLAIN TEXT
PHP:

if ($option == 'com_frontpage' || $option == '') {

  echo 'This is the front page';

}

This task for Joomla! 1.5 could be easily confirmed by the following command: