Talk

Difference between revisions of "How to determine if the user is viewing the front page"

From Joomla! Documentation

 
Line 6: Line 6:
 
Joomla! 1.5 example fails unless the Itemid is added explicitly to URL.
 
Joomla! 1.5 example fails unless the Itemid is added explicitly to URL.
 
[[User:Iv660|Iv660]] 19:29, 12 August 2011 (CDT)
 
[[User:Iv660|Iv660]] 19:29, 12 August 2011 (CDT)
 +
 +
== Strictly speaking: not correct! ==
 +
 +
The code is not correct, as it would also return TRUE when viewing a single article from the frontpage individually which (at least IMHO) is not '''the''' frontpage.

Latest revision as of 08:49, 14 June 2013

would then function as in the case of a 404 SEF to show that a module appears as a 404?


Joomla! 1.5 example fails[edit]

Joomla! 1.5 example fails unless the Itemid is added explicitly to URL. Iv660 19:29, 12 August 2011 (CDT)

Strictly speaking: not correct![edit]

The code is not correct, as it would also return TRUE when viewing a single article from the frontpage individually which (at least IMHO) is not the frontpage.