Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Gatsby source plugin for Strapi navigation-plugin with custom properties per navigation.

License

Notifications You must be signed in to change notification settings

mariansimecek/gatsby-source-strapi-plugin-navigation-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-source-strapi-plugin-navigation-v3

This plugin sources the strapi-plugin-navigation.

It support custom names and independent navigation types per navigation.

Install

yarn:

yarn add gatsby-source-strapi-plugin-navigation-v3

npm:

npm install gatsby-source-strapi-plugin-navigation-v3

How to use

// gatsby-config.js
 {
   resolve: "gatsby-source-strapi-plugin-navigation-v3",
   options: {
     apiURL: process.env.STRAPI_API_URL,
     navigations: [
       //  array of navigation end-points
       {
         name: "MainNavigation", // optional
         slugOrId: "navigation",
         type: "tree"
       },
     ],
     token: process.env.STRAPI_TOKEN,
    // Optional, useful when navigation subitems are optional 
     schemaForOptionalRelatedFields: `
              slug:  String
              title: String
            `
   },
 }

Credits

Edited plugin gatsby-source-strapi-plugin-navigation-v2 for own purposes.

About

Gatsby source plugin for Strapi navigation-plugin with custom properties per navigation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published