How to detect joomla 1.5 Frontpage?



Using joomla global variable you can easily detect joomla front page.You can use this to  display some content in your front page(index.php)


<?php if (JRequest::getVar('view') == 'frontpage') : ?>

//your content here

<?php endif ; ?>

If you want to exclude something from front page thin use  this code


<?php if (JRequest::getVar('view') !== 'frontpage') : ?>

 //your content here

 <?php endif ; ?>

Hi, I am Maidul Islam.I like Web Developing.
Find out more about me.

Latest posts by maidul (Posts)