gatsby-plugin-drupal-menus

1.0.6 • Public • Published

Drupal menus for Gatsby

This module works alongside the Gatsby Live Preview module for Drupal.

Installation

npm -i gatsby-plugin-drupal-menus

In your gatsby-config.js add:

module.exports = { plugins: [ gatsby-plugin-drupal-menus ] }

Usage

To use this component simply add the following to your site's where your wish for your menu to appear

<Menu />

And the main menu will appear.

The menu also accepts a prop of menuName which is the drupal machine name for the menu.

If for example, you wished to add the footer menu, you could do something like the following:

<Menu menuName={`footer`} />

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.6
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.6
    17
  • 1.0.5
    1

Package Sidebar

Install

npm i gatsby-plugin-drupal-menus

Weekly Downloads

18

Version

1.0.6

License

MIT

Unpacked Size

5.17 kB

Total Files

4

Last publish

Collaborators

  • xaviemirmon