Forum Moderators: coopster

Message Too Old, No Replies

Breadcrumbs and includes

No directories, many pages website. would need breadcrumbs help

         

AndieR

8:42 pm on Aug 1, 2005 (gmt 0)

10+ Year Member



Hello,

One of our clients who has an existing site would like for us to implement a breadcrumbs line.

My problem here is that his site was built on the basis of a single layout file and inumerous include files and no directories. One single include file may contain different aspects of different pages. A real mess from my point of view but there is little I can do at this stage to recode evrything of course.

Well... now onto my problem... I actually have no idea on how to code a breadcrumbs for this very specific case, I mean from what I understood existing breadcrumbs scripts list items on a directory or file basis... Not sure how to work this out with a single layout file and includes inside it...

Any help greatly appreciated.

Regards,
Andie

maxi million

9:16 am on Aug 2, 2005 (gmt 0)

10+ Year Member



could you give an example URL?

AndieR

12:19 pm on Aug 2, 2005 (gmt 0)

10+ Year Member



Hello,

Thank you for your reply. Here are a couple examples... these two pages load their information from a single include file:

[domain.com...]

[domain.com...]

Thank you.
Andrea

maxi million

1:54 pm on Aug 2, 2005 (gmt 0)

10+ Year Member



[domain.com...]

assuming that the values of a, display and id are variables, this breadcrumb would not be at all difficult if you are fetching all the values from a db. so if you could fetch a row where id = 1304, then you could have a function that basically did this:

if($_GET['a'] && $_GET['album'] && $_GET['id'])
{
echo "$row['a'] > $row['album'] > $row['id']";
}
else if($_GET['a'] && $_GET['album'])
{
echo "$row['a'] > $row['album']";
}
else
{
echo "$row['a']";
}

i know this is not the best of solutions...but i am assuming here that you are actually fetching everything from a db and that all the values will be set.

there was a similar discussion previously...may be you could too check it out
[webmasterworld.com...]

AndieR

5:48 pm on Aug 2, 2005 (gmt 0)

10+ Year Member



Hello,

Thank you for your reply, this is just the trick I was needing!

Regards,
Andrea