I am building breadcrumb for commerce.
I want begin breadcrumb from "Shop", path "/shop" instead "Home"
Can you help me ? Thank :D

This is my config crumb
-------------------------
crumbs.home_title
taxonomy.termReference.field_categories.node.products - products
*

Comments

donquixote’s picture

I want begin breadcrumb from "Shop", path "/shop" instead "Home"

Do you want this for all pages? Or only for a sub-section on your site?
(and you can try to catch me on IRC, #drupal on freenode)

tannguyenhn’s picture

Yes, I want this for all pages. :D

tannguyenhn’s picture

@donquixote i don't know use IRC, Can you guide me at here ?

donquixote’s picture

I see two possible solutions:
1. You make "shop" the front page, under admin/config/system/site-information.
2. You use hook_menu_breadcrumb_alter() or hook_preprocess_breadcrumb() to replace the first item of the breadcrumb.

tannguyenhn’s picture

@donquixote Thank you !! hook_menu_breadcrumb_alter() worked for me. :D

donquixote’s picture

Great, then I can close this.
If more people report having this kind of use case, I might think about a feature to make this easier. But until then, the solutions pointed out in #4 should be enough.

donquixote’s picture

Status: Active » Closed (fixed)