Page 1 of 1

Current link Dynamically disabled????

Posted: Mon Sep 06, 2004 10:54 pm
by mhulse
Title: Current link Dynamically disabled????

Hello,

What is the best way to dynamically disable the "current page" link in a CSS based nav?

I would prefer PHP... no JS...

Because I am using templates, I do not want to hand style the menu on each page like so:

Code: Select all

/*css*/
	a:active, a.current {
	color: #666666;
}

Code: Select all

<!-- HTML -->

<div id="nav_banner">
		<a href="#" class="current">Home</a>
		&nbsp;
		<a href="#">About</a>
		&nbsp;
		<a href="#">Folio</a>
		&nbsp;
		<a href="#">Resume</a>
		&nbsp;
		<a href="#">Code</a>
		&nbsp;
		<a href="#">Forum</a>
		&nbsp;
		<a href="#">Contact</a>
		&nbsp;
		<a href="#">Links</a>
		</div>
I would like to have a dynamic nav that knows to disable/un-link the current link....

Any help/links/tuts/code would be greatly appreciated!

Thanks! :D
Cheers
Micky

Posted: Mon Sep 06, 2004 11:14 pm
by feyd
look into templating: [devnet]+template* +engine[/devnet]