Good Morning,
I'm currently redesigning our company's webpage, and I'm having a little bit of trouble with dynamic breadcrumbs (if that's even the correct term). I'm pretty much a novice when it comes to programming, so bear with me.
Background 1: We have 5 TAIs (technical area of intervention) and each TAI has around 20 products. So far so good.
Background 2: These products all have the same HTML template, hence I don't have a single template for each individual product. They're all interlinked via PHP/MYSQL. The TAIs of course have a different HTML template, but only one for all 5 areas.
Problem: I've started putting breadcrumbs on every page, and I don't really want to ignore the TAIs/products. Since each individual page has the same template, I have to somehow come up with a PHP function or something in order to link back to the TAI when you click on a product.
Example: I click on Product 7 in TAI 2, so the breadcrumbs would look like this: Home > TAI 2 > Product 7(last one isn't a link, works perfectly well with a php function referring to the current product's name).
If I click on Product 4 in TAI 3, breadcrumbs would be: Home > TAI 3 > Product 4.
I hope I'm making some sense. I somehow want the part of the breadcrumb after Home >, hence the TAI, to refer and link back to the corresponding proper page (i.e. TAI 3 if I'm on a product's page that belongs in TAI 3). Is this even possible?
If I'm not making sense at all, do tell. :p If anything is needed, tell me and I'll get it ASAP.
Many thanks in advance.
Question about dynamic breadcrumbs
Moderator: General Moderators
-
relativity
- Forum Newbie
- Posts: 2
- Joined: Thu Jul 30, 2009 8:53 pm
Re: Question about dynamic breadcrumbs
It's possible. Details, however, depend on how you store and retrieve your products and TAIs, and how the link to a TAI looks like.relativity wrote: I hope I'm making some sense. I somehow want the part of the breadcrumb after Home >, hence the TAI, to refer and link back to the corresponding proper page (i.e. TAI 3 if I'm on a product's page that belongs in TAI 3). Is this even possible?
-
relativity
- Forum Newbie
- Posts: 2
- Joined: Thu Jul 30, 2009 8:53 pm
Re: Question about dynamic breadcrumbs
Basically what happens is that in our CMS you have to select a category, which represents the 5 TAIs, when you fill in the product information, so that the product immediately gets referred to the specific TAI.Weirdan wrote: It's possible. Details, however, depend on how you store and retrieve your products and TAIs, and how the link to a TAI looks like.
If I'd know how a link to a TAI looks like, I'd have answered my own problem, wouldn't I? :p
Normal link to a product-page: /index.php?page=PRODUCTS&id=xx
Normal link to a TAI-page: /index.php?page=PRODUCTS&cat=xx