Forum Moderators: coopster
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
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
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...]