Contentful extension for Grow. Binds Contentful collections to Grow collections.
(WIP)
- Create an
extensions.txt
file within your pod. - Add to the file:
git+git://github.com/grow/grow-ext-contentful
- Run
grow install
. - 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.