Score:1

How to use Easy breadcrumb module so that breadcrumb reflects the URL path segments?

me flag

For example, if URL ends with /test/flower , breadcrumb should be Home/test/flower.

First time working with this module,and it's not clear to me how to do this. Could you please help me?

Thanks in advance

Score:2
in flag

Easy Breadcrumb works on the principle that every segment in your path is actually a reachable page (more on this later) and it builds the page's breadcrumb based on that path sequence. This works best when used with Pathauto to define aliases.

For example, let's take an example URL of https://example.com/blogs/space/how-to-reach-mars. The expectation is that the breadcrumb would be Home / Blogs / Space / How To Reach Mars. To make this work:

  • https://example.com/ must be a working page (it should, it's your home page)
  • https://example.com/blogs could be a Views page listing all Article nodes.
  • https://example.com/blogs/space could be a Views page with a contextual filter, filtering all Article nodes by a topic field containing "space".
  • https://example.com/blogs/space/how-to-reach-mars an Article node whose alias is constructed with pattern /blogs/[node:field_topic]/[node:title]

Now Easy Breadcrumb does allow you to set unreachable pages on the in-between segments (e.g. the pages might be permissioned away or just non-existent), there is a configuration for this. In the example above, you can totally leave out the Views pages (/blogs and /blogs/[topic]) and still have the Node's path be /blogs/space/how-to-reach-mars. The breadcrumb on the page is still Home / Blogs / Space / How To Reach Mars but "Blog" and "Space" are unclickable.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.