Welcome Guest, Not a member yet? Register   Sign In
achor highlighting
#1

[eluser]soupdragon[/eluser]
I am sure this has been asked before but i have failed to find the answer

i have a side navi which i include as a view all over the place.
in it obviously lots of this sort of thing

<?=anchor('start/help', 'Hilfe', 'onfocus="blur()"');?>

i have in the controllers a $data['page] so know where i am but
how can i easily highlight which navi point i am on ?


so far i have come up with this
<li>&lt;?=($page == 'help') ? '<b>' : '';?&gt;&lt;?=anchor('start/help', 'Hilfe', 'onfocus="blur()"');?&gt;&lt;?=($page == 'help') ? '</b>' : '';?&gt;</li>

but to be honest thats more code than if i just hard coded the link :-P


Messages In This Thread
achor highlighting - by El Forum - 06-10-2008, 06:49 AM
achor highlighting - by El Forum - 06-10-2008, 07:02 AM
achor highlighting - by El Forum - 06-10-2008, 07:16 AM
achor highlighting - by El Forum - 06-10-2008, 07:18 AM
achor highlighting - by El Forum - 06-10-2008, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB