vbsaltydog has asked for the wisdom of the Perl Monks concerning the following question:

I use a Perl shopping cart and have modified it to use SEO friendly URLs but the beadcrumbs trail is broken as a result. How can I create a dynamic breadcrumb trail using Perl that does not rely on directory structures or sitemaps? I need for the script to use a conditional statement to figure out if it is showing a category page or a product page (I can do this with an if/else) and if it is on a category page, I need for it to look in the mysql db for parent categories of the present category until there are no more parents and output the results in a breadcrumb trail. If I can get this working then I will move on to the product pages. Any help is appreciated.

Replies are listed 'Best First'.
Re: building breadcrumbs
by planetscape (Chancellor) on Dec 24, 2006 at 10:19 UTC

    As far as figuring out what broke the breadcrumb trail, you can always undo what you did to modify the shopping cart until it resumes working again, and then you can try to figure out how to accomplish the remainder of the changes while preserving the working trail. (You are using some form of version control, right? ;-) )

    Now to the rest of your question... there is a question there, isn't there? It sounds like you have clearly mapped out the steps you need to take, so converting that to code should be straightforward, with your algorithm in hand...

    HTH,

    planetscape