Tuesday, May 14, 2013

How to test if you're on the homepage of Joomla! 1.0

To determine if the user was viewing the front page of Joomla! 1.0.x use code like this:
 
<?php
if ($option == 'com_frontpage' || $option == '') {
echo 'This is the front page';
}
?>

Disqus Comments