![contentful json editor contentful json editor](https://i.pinimg.com/736x/ea/08/4b/ea084b3acc160a2be440a8344847b8c8.jpg)
- #Contentful json editor how to
- #Contentful json editor install
- #Contentful json editor update
- #Contentful json editor archive
#Contentful json editor update
That's all we need to be able to start editing content directly with Stackbit! Update Content Now if you go back to the Stackbit application in your browser, you should see the sitemap populated with the Home Page entry. Open your stackbit.yaml file and add a models property with configuration for the page model.
#Contentful json editor how to
Therefore, Stackbit cannot infer which models are pages, and does not know how to render the sitemap or provide basic page editing capabilities without further configuration.įortunately, all it takes to tell Stackbit which Contentful content types represent pages is a few lines of configuration. But with Contentful, every piece of content is of a generic entry type, structured from and governed by some content type. Stackbit considers pages to be a unique type of model that represents a single webpage (or URL) within your site.
![contentful json editor contentful json editor](https://blog.techchee.com/wp-content/uploads/2021/01/copy-bundle-resources-json-files-1024x399.png)
![contentful json editor contentful json editor](https://user-images.githubusercontent.com/1135454/40737318-411af474-6438-11e8-8952-bf1ff0f1ee96.png)
We only need a small amount of configuration to unlock page editing capabilities with Stackbit. Stackbit's only real requirement is that content must be structured and separated from code.īecause we're using a headless CMS (Contentful), your content is inherently structured and decoupled from the example project code. Learn more about how Stackbit works with structured content.
#Contentful json editor install
Given that we're working with a headless CMS, this also assumes you understand how structure content works for modern websites. npm install contentful / field-editor-date This package contains a React DateEditor component that is used as a default for the Date field type in the Contentful web application. Following it requires completing all previous steps. The next time a qualifying event (such as publishing an entry) takes place in Contentful, you should be able to see that document in Lytics.This is a lesson within the Next.js + Contentful tutorial.
#Contentful json editor archive
There is no way to remove, mark as unpublished, or archive entries from Contentful in Lytics, thus these event types are not recommended for use in the webhook.
![contentful json editor contentful json editor](https://static.macupdate.com/screenshots/40881/m/cocoa-json-editor-screenshot.png)
Note: Currently this integration only supports content entry ingestion and updates. For this integration it is recommended to select Entry events on Publish. Under Triggers you can configure what events the webhook should fire on by selecting Select specific triggering events. Under URL, select the POST method and enter the following URL:.Add a name for your webhook such as "Lytics Content Collection" or something similar.In the space you wish to configure, click Settings and then Webhooks.Configuring the Webhookįollow these instructions to set up the webhook integration. If you are not currently using webhooks in Contentful, it may help to read through the Contentful documentation on webhooks and webhook transformation to familiarize yourself with these concepts. Go through the authorization process and have your authorization ID ready.You can read how to generate a new API token if you do not already have one. Have a Lytics API token with the Data Manager role ready.Before You Beginīefore you set up webhooks to go to Lytics make sure you've completed the following prerequisites: Imported Contentful entries can be included as part of content collections and recommendations to power marketing campaigns personalized with one-to-one content. You can send custom topics through this integration in addition to the standard Lytics topic extraction process using natural language processing. Google Analytics: Setup Custom DimensionsĬonfiguring webhooks in Contentful will allow you to send content to Lytics when it's published.