Return to Snippet

Revision: 58839
at August 6, 2012 15:56 by morktron


Initial Code
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
?>
<? if ($menu->getActive() == $menu->getDefault()) { ?>
this is the front page
<?php } else { ?>
    do something else
<?php } ?>

Initial URL


Initial Description
Show html on homepage and different html on other pages

Initial Title
Conditionial statement to show html in Joomla 2.5

Initial Tags
php, joomla

Initial Language
PHP