Joomla - Load only on home page


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.