Contentful extension for Grow. Binds Contentful collections to Grow collections.
Customized Jung von Matt version with extra functionality!
- Binds Contentful collections to Grow collections.
- Supports localized fields and localization.
- Currently limited to 100 entries per collection.
- 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
space: exampleContentfulSpaceId
access_token: exampleContentfulProductionKey
# Uncomment to use the `preview` API.
# access_token: exampleContentfulPreviewKey
# preview: true
# When the contet structure has references like teasers that blow up the page yaml
# uncomment and edit the following lines to skip those fields in related entries
# skip_related_fields:
# - teaser
bind:
- collection: /content/exampleModel1/
content_type: exampleModel1
# Optional. The field used to generate the basename of the Grow document.
key: slug
- collection: /content/exampleModel2/
content_type: exampleModel2