active_class not working when using fuel_nav()
Hello,
I have noticed this on more than one website that I have built with Fuel. I have code that generates a navigation structure that looks like this:
<?php echo fuel_nav(array('group_id' => 'Primary', 'active_class' => 'on')); ?>
Pretty standard setup, only catch is that the "active_class" part doesn't seem to work at all. I have another Fuel site that this is working on, so I have seen it work before, I'm just wondering why its not consistently working on all of my fuel sites. Actually, if you go here and view the source in Firebug:
http://nycitybikeshare.com/how-it-worksYou'll notice that there is a nav id=main with a UL that is generated by the fuel_nav() function. Notice how it loads in the first and last attributes, but not the active_class attribute. What could be going wrong?
Oh, and FYI, I cloned the latest version of Fuel yesterday, and I'm noticing that problem happening with the website I'm working on with that cloned copy, so I have the most up-to-date version of it.
Erik
Comments
Let me know what may be done to get these navigation items stored in the DB in line with the controller-based ones.
Thanks
nav_key: how-it-works
parent_id: 0
Array ( [id] => 1 [group_id] => 1 [location] => how-it-works [nav_key] => how-it-works [label] => How It Works [parent_id] => 0 [precedence] => 2 [attributes] => [selected] => [hidden] => no [published] => yes [group_name] => Primary ) 1
In this example, the page that is actively loaded is called "how-it-works"
https://github.com/daylightstudio/FUEL-CMS/commit/28584e7d604d631ef0c123cd4357373c863985d1