Actions

Talk

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

From Joomla! Documentation

(New page: would then function as in the case of a 404 SEF to show that a module appears as a 404?)
 
(Strictly speaking: not correct!: new section)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
would then function as in the case of a 404 SEF to show that a module appears as a 404?
 
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===
 +
 +
Joomla! 1.5 example fails unless the Itemid is added explicitly to URL.
 +
[[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 07: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

Joomla! 1.5 example fails unless the Itemid is added explicitly to URL. 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.