breadcrumbs_field
This module provides a computed field for entities to expose their breadcrumbs using core breadcrumbs service. The primary use case for this module is exposing breadcrumbs for entities as part of the entity itself so it can they can be use outside the theme layer of Drupal, for example when consuming entities through JSON:API or similar web services.
Features
- Out-of-the-box support for core entities
- Support for JSON-LD format as additional field
Post-Installation
Nothing, Is plug and play. If you want to disable the JSON-LD support you can visit the module configuration page at /admin/config/search/breadcrumbs-field and uncheck the JSON-LD support checkbox.
Additional Requirements
No additional requirements.
Recommended modules/libraries
This module plays nice with Easy Breadcrumb module, in fact we encourage you to use it. If you plan using this module with JSON:API module, we recommend you to use JSON:API Extras module to properly expose the JSON-LD format (check docs for more information).
Similar projects
- Computed Breadcrumbs: this module provides a similar feature but is based on the
menu.menu_trailservice instead of thebreadcrumbservice, the latter is more powerful because does not rely solely on the URL path. - Breadcrumb Field: this module provides a field to customize each content breadcrumb but does not expose the default breadcrumb with the entity.
Credits
- Breadcrumb icon created by Freepik - Flaticon