Return to Snippet

Revision: 54110
at December 10, 2011 05:32 by dburgess

Initial Code
//This will detect the Home Page of Joomla and perfom whatever code you tell it to
$menu = & JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
	//This code will be executed on the home page
} else {
	//This code will be executed on every page except the home page

Initial URL

Initial Description
This will let you execute certain scripts on the home page and other scripts on the other pages of the site.

Initial Title
Joomla - Execute some code on home page and other code on all other pages

Initial Tags
page, code

Initial Language