Wednesday, July 6, 2011

Joomla front page conditions

<?php $menu = &JSite::getMenu(); ?>
<?php if ($menu->getActive() == $menu->getDefault()) { ?>
<p>this will show on main</p>
<?php } else { ?>
</>This will show on all other pages</p>
<?php } ?>

No comments:

Post a Comment