Skip to content

Render a breadcrumb trail in Nuxt from the Drupal decoupled router, with the DruxtBreadcrumb component and its theming options.

Breadcrumb

View source on GitHub

DruxtBreadcrumbModule : function

The Nuxt.js module function.

Installs the DruxtBreadcrumb component and the Druxt and DruxtRouter dependencies in a Nuxt.js frontend.

See

Example (nuxt.config.js)

export default {
  modules: [
    'druxt-breadcrumb'
  ],
  druxt: {
    baseUrl: 'https://demo-api.druxtjs.org'
  }
}

DruxtBreadcrumbMixin : object

Vue.js mixin for DruxtBreadcrumb Wrapper components.

Adds the crumbs and langcode props used to render a Drupal breadcrumb.

See: DruxtBreadcrumbMixin
Example

<script>
import { DruxtBreadcrumbMixin } from 'druxt-breadcrumb'
export default {
  mixins: [DruxtBreadcrumbMixin]
}
</script>

In this package

Nuxt module

Components

Mixins