gpd
gatsby-plugin-drupal-menus
npm i gatsby-plugin-drupal-menus
gpd

gatsby-plugin-drupal-menus

Adds support for nested hierarchical menus from Drupal 8/9 in Gatsby.

by Xavier Mirabelli-Montan

1.0.6 (see all)License:MITTypeScript:Not FoundCategories:Gatsby Menus
npm i gatsby-plugin-drupal-menus
Readme

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`} />

Downloads/wk

9

GitHub Stars

5

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.6
latest
1yr ago
No tutorials found
Add a tutorial