3.0.1 • Published 2 years ago

gatsby-source-drupal-menu-links v3.0.1

Weekly downloads
80
License
GPL-2.0-only
Repository
github
Last release
2 years ago

Gatsby source Drupal menu-links

Overview

Provides gatsby integration for the Drupal JSON:API menu items module

Install

npm install --save gatsby-source-drupal-menu-links

Setup

In Drupal land 💧

  • Enable jsonapi module from core.
  • Add and enable jsonapi_menu_items module
composer require "drupal/jsonapi_menu_items"
drush en -y jsonapi_menu_items

In Gatsby land 🟣

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-drupal-menu-links`,
      options: {
        baseUrl: `https://live-contentacms.pantheonsite.io/`,
        apiBase: `api`, // optional, defaults to `jsonapi`
        menus: ["main", "account"], // Which menus to fetch, there are the menu IDs.
      },
    },
  ],
}
3.0.1

2 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago