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

No Comments

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

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 30, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link