Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [breadcrumbs]

In Drupal, it shows the hierarchy of the page that the user is currently viewing.

-1
votes
1answer
33 views

How do I customize breadcrumbs?

The breadcrumbs I get are like the following ones. Service HOme But I want to change them to the following ones. Service HOme>>Service
1
vote
0answers
18 views

How do I get Crumbs to use the dynamic title from a view?

I have a view set up with a: Content: Has taxonomy term ID (with depth) When I preview I see the title... However in Crumbs when I go to the DEBUG tab for the view url: How do I get Crumbs to ...
1
vote
1answer
33 views

How to make breadcumbs grab taxonomy terms and use tokens

I have tried about 4 different breadcrumb modules now and none of them seem to do what I want. I want them to act in a similar way to Pathauto whereby I can mix and match tokens. There seems not to be ...
0
votes
1answer
46 views

Breadcrumbs for some content types

I'm using breadcrumbs generally throughout my Drupal 7 site and all working well. However, for news articles, I don't want to have to add each into the menu structure as over time, this will be a ...
0
votes
0answers
156 views

No breadcrumb on front page

I've a Drupal 8 (8.5.4) site which is using a custom created on top of Bootstrap Barrio. I'm using Easy Breadcrumbs module. Here is the configuration I used. Easy Breadcrumb settings The default ...
0
votes
0answers
65 views

How to add second breadcrumb

I have a node type with a multivalue taxonomy term reference field. In a custom module I altered the breadcrumb to show the hierarchical terms too. But this works only for the first term. My question ...
0
votes
0answers
58 views

How to add breadcrum in custom page?

I have created one custom page. Also created breadcrumb service which perfectly work for admin page but doesn't work for custom page.Even I have checked my custom theme setting where breadcrumb ...
2
votes
1answer
72 views

Prevent path based breadcrumb in theme, or, don't show breadcrumbs for 403/404 responses?

I am looking to do one of these solutions for a users 'contact' page. When a user has unchecked "Personal Contact Form", and someone accesses that URL (user/id/contact), the breadcrumb displays the ...
1
vote
0answers
50 views

How to get the breadcrumb from a module template?

I'm using D8 and I want to display only the first item of the breadcrumb in a block. So I need the breadcrumb, and manipulate it to display only the first item. Unfortunately, I don't know how to get ...
1
vote
1answer
142 views

How do I know from which page the users are coming?

I'm looking for a way to determine where the users are coming from to build the breadcrumb for a page. Is there something I can do with hook_breadcrumb_alter(&$active_trail, $item), or should I ...
1
vote
1answer
410 views

Override breadcrumbs is not present?

In Drupal 7, in the views with an argument, is easy to override both title and breadcrumbs. Now in Drupal 8 I can't find the option. Did I miss something? or isn't possible? In this case what is ...
0
votes
1answer
111 views

Custom breadcrumbs from a breadcrumb builder disappear until I clear Varnish cache

Unrelated to this question, which is about how to properly inject breadcrumbs as a renderable item into a node template.. I have a custom breadcrumb builder for certain node types with the same sort ...
0
votes
1answer
932 views

Views breadcrumb

I need to have breadcrumb builder that will make all "News" nodes appear as breadcrumb children of a View we've created at /news I did follow this post : Add a breadcrumb to a view page? But it ...
0
votes
1answer
232 views

How do I manage a mix of menu and custom breadcrumbs?

I have a site where I need breadcrumbs to be generated in a couple of different ways: Based on the menu path (Menu Breadcrumb) Based on custom rules (was thinking Custom Breadcrumb but it doesnt ...
1
vote
1answer
43 views

Can adding a cache tag create another cache row in database

I want Node breadcrumbs to be updated when the content is updated, so I added the following code to my breadcrumb generation class: // Set cache tags $node_cache_tag = 'node:'.$node->id(); $...
0
votes
1answer
61 views

How to replace the title of the profile in the breadcrumb, by the name of the user?

I installed the "Profile" module. I have rewritten the url with the username instead of the profile title. When I visit a profi, the url is corect but the breadcrumb is still indicating the title of ...
0
votes
0answers
312 views

Taxonomy vocabulary in breadcrumbs / url

I have a menu with some items that link to some views which filter content type associated with vocabulary terms. Navigation Menu ITEM -> views page vocabulary Result : my-site.com/vocabulary ...
1
vote
1answer
322 views

How to generate absolute URL for breadcrumbs?

I am use Easy Breadcrumb module for a D8 site. I have everything I need with this module as it alters the existing Breadcrumb block, but it outputs relative URLs. How can I change the relative URLs ...
1
vote
1answer
46 views

How can I create a breadcrumb?

I have to create a breadcrumb so that, if a page has a menu, the breadcrumb should be the menu with its hierarchy. If the node page doesn't have a menu, the page title should be in the breadcrumb. I ...
0
votes
1answer
54 views

How to add contextual fields to breadcumb links?

How can contextual fields be added to breadcrumb links? For example, I have a hierarchical taxonomy vocabulary like this: Animalia --Chordata ----Vertebrata On the Vertebrata page, the default ...
0
votes
2answers
296 views

How do I use an absolute URL to set as breadcrumb link?

I would like to use absolute URL instead of relative URL as the breadcrumb link on my website. Right now, I am using Drupal 7 and Path Breadcrumb 7.x-3.0 Module. All my breadcrumbs are set by Module. ...
0
votes
1answer
82 views

Hide child pages from menu tree

Hopefully some wise Drupal guru will be able to help me with this one. I'm using menu and menu block to output a side menu in Drupal 7. Using Panelizer, on a basic page I can customize display and ...
2
votes
1answer
480 views

How can I display a taxonomy term's ancestral tree on a content page?

I am using Drupal 8. I have a hierarchical taxonomy vocabulary like this (simplified): Animals -Vertebrates --Fishes ---Butterflyfishes ----Chevron Butterflyfish On a taxonomy term's page, I ...
1
vote
1answer
1k views

How do I customize hierarchical breadcrumbs?

The breadcrumbs I get are like the following ones. Home / services Home / service 1 Home / service 2 I want to change them to the following ones. Home / services Homes / services / service 1 ...
0
votes
0answers
43 views

How to get rid of a double breadcrumb in a view

I have a User view, bringing in nodes via a relationship relating content that references the User in one of the node fields. I have an attachment to the page, that pulls in content that references ...
1
vote
1answer
739 views

How to change the title of breadcrumb?

I have a route that renders a node. Unfortunately in the breadcrumb the route title is rendered rather than the node title. When I preprocess in hook_preprocess_breadcrumb() inside my module only the ...
0
votes
1answer
664 views

Taxonomy term route name?

I am trying to make a custom taxonomy breadcrumbs based the code from this question: Drupal 8 How to do a custom taxonomy breadcrumb? This line adds a new breadcrumb for the home page: $breadcrumb-&...
0
votes
1answer
158 views

Breadcrumb per content type per role, bootstrap theme

I need to display a breadcrumb per content type and per role. What the best way to do it. I've tried a lot of module and none fit my needs. I tried overwritting breadcrumb in template.php as follow, ...
0
votes
0answers
30 views

Breadcrumbs in Drupal Bootstrap is not updating when the menu link title is changed

we are using Drupal 7 and are having a problem with the drupal-bootstrap module. When we change the "Menu link title" to a new string the breadcrumb text string is not updated We are running the ...
4
votes
1answer
341 views

Which implementation is better for custom breadcrumb and why?

As per answers received here, we can implement custom breadcrumb either via module or via HOOK_preprocess_breadcrumb. Via module: In custom_breadcrumb.module file <?php namespace Drupal\...
0
votes
1answer
85 views

Home on breadcrumb not being added

I have the code below to create a breadcrumb, and the links are coming out , but the "home" is not. What is wrong with this code? $breadcrumb=new Breadcrumb(); $home_link="Home"; $...
0
votes
2answers
1k views

How can I turn off the Drupal 8 default breadcrumbs

Drupal seems to be adding some default breadcrumbs that come from the URL. How can I disable this feature? I don't see it in configuration but maybe i'm looking in the wrong place
0
votes
2answers
93 views

How do I start an empty breadcrumb?

I am modifying a module that extends PathBasedBreadcrumbBuilder, but that only has methods to add a link at the end of the bread and I want in certain cases to start the breadcrumb from scratch or ...
-1
votes
1answer
2k views

Default Breadcrumb is not working in bootstrap drupal 8?

I have rendered the breadcrumb in page.html.twig {# Breadcrumbs #} {% if breadcrumb %} {% block breadcrumb %} {{ breadcrumb }} {% endblock %} {% endif %} and default ...
3
votes
2answers
1k views

How do I programmatically remove one breadcrumb link?

in Drupal 7 I could just use array_pop($breadcrumb), but in Drupal 8 the breadcrumb is an object and I don't see a method for removing the last element. How can this be done?
0
votes
0answers
574 views

how to make breadcrumbs that are not cached

I have the Current page crumb module installed but the changes to the title are not shown ini the breadcrumb until the cache is cleared. How can i make the breadcrumbs update immediately upon editing ...
2
votes
2answers
2k views

Add a breadcrumb to a view page?

How can you just add a breadcrumb to views? Easy breadcrumb leaves out views. Views breadcrumb does not work correctly with Drupal 8. Is there a simple way with hooks? EDIT 2: Maybe I mean something ...
3
votes
2answers
3k views

How to do a custom taxonomy breadcrumb

I'm using Drupal 8.3.0-beta1 and I need to write a custom module to customize breadcrumbs in some cases. On of this cases consists in customizing the breadcrumb in path taxonomy/term/% but with my ...
3
votes
1answer
155 views

When using custom twig expressions to rewrite view title, the breadcrumb shows the twig expression without replacing it

In some of the views, I needed to customize the title using twig. For example {{ title }} which would read the title of the first row in the view result and place it in the page title. This works fine....
4
votes
1answer
2k views

Check the current page is a view

Is there a way to determine if you are on a view page, similar to \Drupal::request()->get('node') used to check if the current page is a node page? I need to adjust breadcrumbs for view ...
1
vote
2answers
42 views

Back to the view

I have created a view that creates pages, each page display the terms of taxonomy of a vocabulary and their articles, how can i link the articles to those pages ? For example : I have the Vocabulary ...
1
vote
1answer
343 views

Add empty links from a BreadcrumbBuilder

For several specific parts of a website, I'm using a custom BreadcrumbBuilder, like this: ... class SpecificBreadcrumbBuilder implements BreadcrumbBuilderInterface { /** * @inheritdoc ...
5
votes
4answers
1k views

How can I add Taxonomy Term to a Node's Breadcrumb?

The Node has attached a single Term. Current breadcrumbs rendered [HOME] >> [NODE_TITLE] Want to render like this. [HOME] >> [TERM] >> [NODE_TITLE]
3
votes
1answer
62 views

Drupal Page Process

Help me understand the best practice on how basic site building should work in Drupal 8. Say I have a section on a website that is all about teaching. I'm going to create a basic page content type ...
2
votes
2answers
1k views

How to include menu item in breadcrumb

I've this breadcrumb I've created, where I would like to show it as Home > Main menu > Sub menu Where sub menu is connected to a node. So when a user click on node, it must show the breadcrumb of ...
0
votes
1answer
65 views

How to resolve conflict between zen theme breadcrumb function and Path Breadcrumbs?

Apparently there Path Breadcrumbs module and the Zen theme's breadcrumb append title option have a conflict where the Path Breadcrumbs module overrides the theme's implementation of the breadcrumbs. ...
1
vote
1answer
64 views

How to fix Zen theme only showing correct breadcrumbs with theme developer module enabled?

I've been going around in circles with trying to get breadcrumbs working as the client wants them on a Drupal 7 site with a custom Zen theme working. I've built the site out and it requires the titles ...
0
votes
1answer
23 views

Zen theme doesn't append content titles to breadcrumbs

I've inherited a site with a subtheme designed on Zen 7x-5.4 to maintain and I'm having a problem with the breadcrumbs. I've checked the append content title to breadcrumb options in Appearance=>...
1
vote
2answers
89 views

Why don't breadcrumbs appear on views generated pages?

I'm maintaining a site I didn't build and I'm running into an issue with breadcrumbs. Pages generated by views don't seem to conform to the existing bread crumb system. For example I have a members ...
0
votes
2answers
388 views

Crumbs is not showing parent of taxonomy term

I’m using Drupal 7.5.2 and am attempting to use the Crumbs module (version 7x-2.5) to show parent and child paths in the breadcrumbs trail and it’s not working. My URL alias structure—which I am ...