Contentful extension for Grow.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
contentful_ext Added limit param to contentful api request Nov 17, 2017
example
.gitignore
.travis.yml
LICENSE
README.md
setup.py

README.md

grow-ext-contentul

Build Status

Contentful extension for Grow. Binds Contentful collections to Grow collections.

Concept

(WIP)

Usage

Initial setup

  1. Create an extensions.txt file within your pod.
  2. Add to the file: git+git://github.com/grow/grow-ext-contentful
  3. Run grow install.
  4. Add the following section to podspec.yaml:
extensions:
  preprocessors:
  - extensions.contentful_ext.ContentfulPreprocessor

preprocessors:
- kind: contentful
  autorun: true
  inject: true
  space: exampleContentfulSpaceId
  keys:
    preview: exampleContentfulPreviewKey
    production: exampleContentfulProductionKey
  bind:
  - collection: /content/exampleModel1/
    contentModel: exampleModel1
  - collection: /content/exampleModel2/
    contentModel: exampleModel2
  limit: 100

Note: Limit value is optional, 0 or none will set it to its default value wich is 100. And can not be greater than 1000 or the contentful api will throw a BadRequestError.