Search found 3 matches

by jbdev
Tue Aug 21, 2007 3:44 pm
Forum: Joombie Coding Q/A
Topic: How do I getView() or tell If I am at the home page - SOLVED
Replies: 8
Views: 1692

Re: How do I getView() or tell If I am at the home page

Thank you that worked perfectly Try something like: <?php $menu = &JMenu::getInstance(); if ($menu->getActive() == $menu->getDefault()) {   // The default menu item is the active one .... otherwise said, we are on the front page of the site } Something like that should get it done. Louis
by jbdev
Wed Aug 15, 2007 1:50 pm
Forum: Joombie Coding Q/A
Topic: How do I getView() or tell If I am at the home page - SOLVED
Replies: 8
Views: 1692

Re: How do I getView() or tell If I am at the home page

Thanks  for the help. This does not work as well because there is not always a request or "view" is not set. Unless I am missing something <?php if (JRequest::getVar('view') === 'frontpage') { echo 'This is the front page'; } ?> here is what I did for now I created a custom module position and ...
by jbdev
Tue Aug 14, 2007 6:15 pm
Forum: Joombie Coding Q/A
Topic: How do I getView() or tell If I am at the home page - SOLVED
Replies: 8
Views: 1692

How do I getView() or tell If I am at the home page - SOLVED

so without checking $_GET(), how do I find out if I am on the home page? I need to have code execute only on home page... any ideas

Thank you