Re: How do I do this?
| From: | Cal Evans | Date: | Sun, 04 May 2003 15:01:20 +0000 |
| Subject: | Re: How do I do this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146352@lists.php.net to get a copy of this message | ||
Denis,
This is called 'Breadcrumb Navigation' and there is no easy way to do it.
Keeping a list of hidden fields is one way to do it but it's not necessarily
easy. You'll have to treat them as a stack and make sure you pop them
correctly if the user starts jumping around your site.
I've done this using a data driven menu system and 'Nested Trees' to store
the menu's. This worked well because for any given page, I could trace the
path back to the home page programmatically. But this was not easy. If you
are interested in nested trees, check out 'SQL for Smarties' by Joe Celko.
Chapter 28. Great primer and you should be able to figure it out from
there.
HTH,
=C=
* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measure of a programmer is not the number of lines of code he writes
but the number of lines he does not have to write.
----- Original Message -----
From: "Denis L. Menezes" <menezesd@singnet.com.sg>
To: "PHP general list" <php-general@lists.php.net>
Sent: Saturday, May 03, 2003 9:16 PM
Subject: [PHP] How do I do this?
Hello Friends.
In one shopping website I saw this :
Home > Departments > Photography > Cameras & Photographic Equipment >
Camera Film > Item Detail
I know one way to do this is to remember every link that the visitor
has clicked until he has arrived to this page by using hidden fields.
Is there an easier way than that?
Thanks
Denis