Forum Moderators: coopster

Message Too Old, No Replies

Creating those "You are here" navigational links with PHP

How to do it?

         

PFOnline

11:05 pm on May 24, 2004 (gmt 0)

10+ Year Member



Say the site structure for 1 page of my site, is like this for example:

www.mydomain.com/r/rolling_stones/paint_it_black.html

Is there a way, using PHP, to automatically make links that say:

You are here:

MyDomain.com
MyDomain.com - R
MyDomain.com - R - Rolling Stones
MyDomain.com - R - Rolling Stones - Paint It black

And the MyDomain.com would link to www.mydomain.com

And the "MyDomain.com - R" would be a link to www.mydomain.com/r/

And "MyDomain.com - R - Rolling Stones" would link to www.mydomain.com/r/rolling_stones/

And the MyDomain.com - R - Rolling Stones - Paint It black would just be text, without the link, because they are allready on that page of the site.

Anyone know?

jatar_k

11:09 pm on May 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



they are called breadcrumb navigation, try these

[hotscripts.com...]

PFOnline

11:14 pm on May 24, 2004 (gmt 0)

10+ Year Member



Thanks jatar. :)

Timotheos

4:25 am on May 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Scroll down on this thread and you'll find a simple function that does what you're looking for...
[webmasterworld.com...]