Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » how to make breadcrumbs render link path, instead of parent/child relationship

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1069 Views
  • ChrisBryer
    Community Member
    95 Posts

    how to make breadcrumbs render link path, instead of parent/child relationship Link to this post

    hi everyone,
    i have a products page which can be accessed from 2 different ways...

    1) navigate through the site tree. go from home- to the 'product holder' page - to the products page (this mirrors what is in the CMS site tree)

    2) navigate via relationships - go from home to a 'marketsHolder' page which shows different markets and related products, which link to the products.

    my problem is when i navigate to the products page via the many-many-relationship (going through 'markets'), the breadcrumbs show the parent/child relationship that mirrors the siteTree, and does not show the markets path. I saw hammy's thread:
    but that approach looks like it would make the breadcrumbs always go through the relationship and not consider that the products can be navigated to by 2 different paths.

    i considered trying to dynamically create a new page and dump the contents of the product page into it, but that may show up on google-analytics as 1 product with 2 urls, so i think re-writing the breadcrumbs is the way to go.

    if anyone has any ideas on how to solve this, i would love to hear them.
    thanks alot,

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.