gatsby-source-sitefinity

1.1.0 • Public • Published

gatsby-source-sitefinity

Installation

yarn add gatsby-source-sitefinity

Usage

In gatsby-config.js:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-sitefinity',
      options: {
        languages: [{ LANGUAGE CODE }, { LANGUAGE CODE }, …],
        url: '{ DOMAIN }/api/{ SITE }',
      },
    },
  ],
}

Note: Content type names are converted to Pascal case and prepended with Sitefinity to avoid potential naming collisions. For example, a content type of content-items in Sitefinity can be queried in GraphQL as allSitefinityContentItems.

Options

  • ### url (required)
  • ### language
    • Used to set the sf_culture url parameter.
    • If absent, nodes will be created for all content items of the default language.
    • If present, nodes will be created for all content items of all languages passed. Example query:
      {
        allSitefinityContentItems(filter: {language: {eq: "en"}}) {
          edges {
            node {
              Id
              Title
            }
          }
        }
      }
      

Package Sidebar

Install

npm i gatsby-source-sitefinity

Weekly Downloads

0

Version

1.1.0

License

GPL-3.0-or-later

Unpacked Size

43.5 kB

Total Files

8

Last publish

Collaborators

  • jonathanrtuck