How to check if your on the Home page using Joomla! 1.5 using PHP

H

Anywhere in your code place the following code

 
	if(JRequest::getVar('view') == "frontpage" ) :
 
	 echo "I'm on the Front Page";
 
	else :
 
	 echo "Not on the Front Page";
 
	endif;

The above code may be modified according to your needs

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me