Is frontpage check in Joomla 1.6
When building a Joomla template it's sometimes useful to know if we are displaying an item on a frontpage or inside pages.
In Joomla 1.5 we were able to check frontpage with
if (JRequest::getVar('view') != 'frontpage') { echo "We are on a frontpage"; }
Joomla 1.6 frontpage checking
In Joomla 1.6 things are similar but frontpage is not called a frontpage any more. Frontpage is now a page with featured items display. We can check it with code below.
if (JRequest::getVar('view') != 'featured') { echo "We are on a frontpage"; }
Related Articles
| < Prev | Next > |
|---|