How to highlight 'active' navigation item in backend sidebar (adv module)

edited July 2011 in Feature Requests
This is a stupid question, so please excuse me in advance.
Here's the situation:
I have an element successfully added to $config['nav'] and it shows up in the cms sidebar. But when I click the entry, the item won't become 'active'. I'm successfully sent to the corresponding view, just the icon stays inactive.
Now, i understand you're supposed to set the 'nav_selected' field inside the module_fuel_models.php file inside the module's config folder, but in my case I'm loading another module's model... so there is no point in declaring that here.

Question is: is it possible to set the 'nav_selected' field from within a controller? (instead of having to declare this in the module' config file) so that when i load the view i also tell Fuel to highlight a certain item in the sidebar?
Makes any sense??

SOLVED my god that was easy. I tried declaring a
public $nav_selected = 'module/entry'; 
inside the controller and it worked! W00T!!!
Sign In or Register to comment.