Keeping parent menu items active in child pages |
Hi I know what you mean,but that is just same as my solution right know.
(11-16-2014, 12:32 PM)alroker Wrote: I use a My_Controller to render my views within a universal template view that has my nav in it. Then from within a controller I have a var called page_name that I can set with the nav name. That gets passed to the template view when rendered. Then in template view I use a shorthand IF to say if page_name = the name of my nav item, set the css class to active. Hope that makes sense. I don't have time right now to show code. |
Messages In This Thread |
Keeping parent menu items active in child pages - by ahmadmilzam - 11-16-2014, 10:42 AM
RE: Keeping parent menu items active in child pages - by alroker - 11-16-2014, 12:32 PM
RE: Keeping parent menu items active in child pages - by ahmadmilzam - 11-16-2014, 06:27 PM
RE: Keeping parent menu items active in child pages - by Hobbes - 11-17-2014, 12:02 PM
RE: Keeping parent menu items active in child pages - by ahmadmilzam - 12-18-2014, 03:48 AM
RE: Keeping parent menu items active in child pages - by InsiteFX - 12-18-2014, 05:18 AM
RE: Keeping parent menu items active in child pages - by apparasenal - 12-18-2014, 11:41 PM
RE: Keeping parent menu items active in child pages - by _this - 12-19-2014, 02:04 AM
|