gatsby-source-cloudcms

    1.1.3 • Public • Published

    gatsby-source-cloudcms

    Source plugin for adding your cloudcms content and attachments into your Gatsby.js site

    Install

    npm install gatsby-source-cloudcms
    or
    yarn add gatsby-source-cloudcms
    

    Usage

    // In your gatsby-config.js
    const gitanaJson = require('./gitana.json');
    
    module.exports = {
      plugins: [
        {
          resolve: `gatsby-source-cloudcms`,
          options: {
            keys: gitanaJson,
            repositoryId: `myRepositoryId`,
            branchId: `myBranchId`
          }
        }
      ]
    }

    Note that you will need to provide API Keys to cloudcms, as well as a repositoryId and branchId (Help).

    You can additionally provide a contentQuery to options with MongoDB syntax to specify what subset of your content to source. For example, if my site only contained content of type store:book and store:author, I could use the following contentQuery:

    {
        "_type": {
            "$in": ["store:book", "store:author"]
        }
    }
    

    More on queries

    Example CloudCMS Gatsby Site

    Install

    npm i gatsby-source-cloudcms

    Homepage

    cloudcms.com

    DownloadsWeekly Downloads

    0

    Version

    1.1.3

    License

    Apache 2.0

    Unpacked Size

    7.38 kB

    Total Files

    4

    Last publish

    Collaborators

    • uzi
    • mwhitman