Skip to content

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

DruxtBreadcrumbModule

View source on GitHub

DruxtBreadcrumbModule(moduleOptions)

The Nuxt.js module function.

  • Adds the Vue.js components to the Nuxt.js frontend.

The module function should not be used directly, but rather installed via your Nuxt.js configuration file.

A Nuxt module configures the Nuxt application, and is unrelated to a Drupal module.

Options are set on the root level druxt Nuxt.js config object.

Kind: global function
See: Nuxt for Drupal developers

ParamTypeDescription
moduleOptionsobjectNuxt.js module options object.

Example (nuxt.config.js)

module.exports = {
  modules: [
    'druxt-breadcrumb'
  ],
  druxt: {
    baseUrl: 'https://example.com'
  }
}