Welcome Guest, Not a member yet? Register   Sign In
Keeping parent menu items active in child pages
#2

(This post was last modified: 11-16-2014, 12:33 PM by alroker.)

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.
Reply


Messages In This Thread
RE: Keeping parent menu items active in child pages - by alroker - 11-16-2014, 12:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB