My website works with Drupal 9, I created a taxonomy for my nodes :

https://i.stack.imgur.com/k9wIy.png

I installed the following module :

https://www.drupal.org/project/easy_breadcrumb

Here is what I am trying to do. If my "node" has the terms "Crypto" and "ICO", the breadcrumb should display :

Accueil >> Crypto >> ICO >> Node Title

Home >> Term >> Sub-term >> Node Title

My nodes will only have a single term or, a term and a sub-term.

The URL of the nodes is :

domaine.com/node-title

The breadcrumb must not use the URL.

Currently it does not work :

https://i.stack.imgur.com/uUx1H.png

One last thing, I also installed the module :

https://www.drupal.org/project/taxonomy_menu

The structure of the taxonomy is therefore exactly the same as that of the main menu, but the nodes are not attached to the menus. They are attached to the terms of taxonomy.

Does anyone have a solution ? Thank you

Comments

vm’s picture

per easy breadcrumb module project page:

Breadcrumbs use the current URL (path alias) and the current page title to build the crumbs.

 Are you sure your path aliases are set up to support the need? ie: term and subterm in path?

zenimagine’s picture

@VM No the taxonomy is not in the URL and I don't want to create this path.

I just want to display the taxonomy used by the neud in the breadcrumb trail.

On this website for example, the breadcrumb is different from the URL:

https://www.clubic.com/materiel-audio-hifi/casque-audio/article-836186-1...

https://www.clubic.com/materiel-audio-hifi/casque-audio/article-836186-1...

vm’s picture

my question was to point out why easy_breadcrumbs doesn't work for what you want to do.

https://www.drupal.org/project/custom_breadcrumbs which provides token support. otherwise, you will need to write your own code to control the breadcrumb

zenimagine’s picture

I have tested the module you suggested and it does not allow you to do this. In the configuration of the "Easy Breadcrumb" module there are the parameters in the screenshots. Do they allow me to create my breadcrumb trail ?

https://ibb.co/QPpNsXm

https://ibb.co/Xsvf7tm

zenimagine’s picture

I updated my question