Posted By

dburgess on 12/10/11


Tagged

page joomla home


Versions (?)

Joomla - Load only on home page


 / Published in: PHP
 

This will detect the Home Page of Joomla and perfom whatever code you tell it to

  1. <?php
  2. //This will detect the Home Page of Joomla and perfom whatever code you tell it to
  3. $menu = & JSite::getMenu();
  4. if ($menu->getActive() == $menu->getDefault()) {
  5.  
  6. //Your Code goes here
  7.  
  8. }
  9. ?>

Report this snippet  

You need to login to post a comment.