I believe that you are only allowed to have one active link on any rendered page according to W3C standards. Sometimes people use a work around to use another setting besides active and style it to appear active.
> That is, by adding "$menu->setActive(XYZ)" to my component controller.php, > I am able to get the Main Menu in the side bar to correctly be highlighted.
> My issue is that when I try a theme from RocketTheme, I notice the are > some other menus linked to main menu but that these are not highlighted.
> I would have thought using the setActive would affect all menus but it > seems not.
> Can anyone kindly help nudge me in the right direction?
On Tuesday, August 21, 2012 2:29:25 AM UTC+3, elin wrote:
> I believe that you are only allowed to have one active link on any > rendered page according to W3C standards. Sometimes people use a work > around to use another setting besides active and style it to appear active.
> Elin
> On Monday, August 20, 2012 3:06:07 PM UTC-4, Dayo wrote:
>> That is, by adding "$menu->setActive(XYZ)" to my component >> controller.php, I am able to get the Main Menu in the side bar to correctly >> be highlighted.
>> My issue is that when I try a theme from RocketTheme, I notice the are >> some other menus linked to main menu but that these are not highlighted.
>> I would have thought using the setActive would affect all menus but it >> seems not.
>> Can anyone kindly help nudge me in the right direction?
> That is, by adding "$menu->setActive(XYZ)" to my component controller.php, I am able to get the Main Menu in the side bar to correctly be highlighted.
> My issue is that when I try a theme from RocketTheme, I notice the are some other menus linked to main menu but that these are not highlighted.
> I would have thought using the setActive would affect all menus but it seems not.
> Can anyone kindly help nudge me in the right direction?
> Thanks.
get it by current itemid $menu = $app->getMenu();
if ($menu->getActive() == JRequest::getCmd('Itemid') == 155 ) {
$active_link =' iam_active';
> > That is, by adding "$menu->setActive(XYZ)" to my component > controller.php, I am able to get the Main Menu in the side bar to correctly > be highlighted.
> > My issue is that when I try a theme from RocketTheme, I notice the are > some other menus linked to main menu but that these are not highlighted.
> > I would have thought using the setActive would affect all menus but it > seems not.
> > Can anyone kindly help nudge me in the right direction?
> > Thanks.
> get it by current itemid > $menu = $app->getMenu(); > if ($menu->getActive() == JRequest::getCmd('Itemid') == 155 ) { > $active_link =' iam_active'; > }