Welcome Guest, Not a member yet? Register   Sign In
Nav highlighting help - how do you track which page the user is on and highlight the appropriate link in the navbar?
#2

[eluser]Samus[/eluser]
you can uri_string in the URL helpers.

There are several ways of achieving this really, you can even do it in pure CSS.

a CI solution could be something like this:

Code:
<li&lt;?=if(uri_string == 'home' OR '') : ' class="active">' endif; ?&gt;><a href='home url'>Home</a></li> : <li><a href="home url">Home</a></li>
Then you'd do that for each nav item, that's abit messy, but it works.

There are loads of other methods, just google them.


Messages In This Thread
Nav highlighting help - how do you track which page the user is on and highlight the appropriate link in the navbar? - by El Forum - 04-14-2012, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB