Skip to content

xaviemirmon/gatsby-plugin-drupal-menus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published