Contentful Integration with Wix is an application designed to link your Contentful account with your Wix site. It enables you to effortlessly populate your Wix site with data directly from Contentful, essentially converting Contentful models into Wix collections. The app offers a 14-day free trial period. Once the trial expires, you must upgrade your subscription to maintain access to Contentful data on your Wix site.
In this guide, you’ll learn how to intall the app, grant essential permissions for each platform, and use Contentful models within your Wix site, including creating dynamic lists with a dedicated dynamic page for each item in the list.
You can install the the app from the Wix App Market or the Contentful Marketplace.
When you install the app from the Wix App Market, you can connect any space and environment associated with your account. Whereas when you install the app from the Contentful Marketplace, you can only connect to the specific space and environment on which the app is installed, unless you use an account-level API key. For more information, see Technical Limits. To learn how to create a Contentful API key, see Creating and managing API keys. After installation, you can grant the app access to your entire account via the Wix Business Manager.
To install the app:
Install the app from either the Wix App Marketplace or the Contentful Marketplace:
To establish the connection between your Contentful account and Wix site, provide the following information:
API Key (Optional): A Contentful API key. This value is optional but recommended to help improve performance and stability. For more information, see Technical Limits. To learn how to create a Contentful API key, see Creating and managing API keys. The value that you need is the Content Delivery API - access token.
The connection between Contentful and Wix is now complete. To see your Contentful data in Wix, go to the CMS tab in your business manager. Under External Collections, you’ll find a new namespace named contentful-on-wix, which contains all your content models and data.
To use the new Contentful data in your Wix site:
Within the panel options, select CMS. Then, click the + sign next to Datasets.
This process adds a dataset into your page and integrates specific data sections into your site. You can repeat these steps as needed to include additional Contentful content within your Wix site.
Dynamic pages are a type of web page designed to showcase content from a Wix CMS collection. They enable the creation of websites capable of efficiently managing extensive content while maintaining a consistent design and user experience. To learn more about adding dynamic pages to your Wix site, see CMS: About Dynamic Pages.
The following sections explain how to create Wix dynamic pages with the ability to present a list of items and a dedicated page for each item.
You Contentful model needs to have a field that allows for creating custom URLs for each dyanmic list item. To configure the model, follow these steps:
Define a text field with the Name “Slug” and the Field ID of “slug”.
In the Appearance section, set the field appearance to “Slug”.
Populate the field with a url friendly unique value for each entry (i.e. "winter-2023-blue-dress"
).
Now, in Wix, you can add a dynamic list page with a dedicated dyanmic page for each list item. To do so, follow these steps:
From the left menu in the Wix Editor, select Databases. If you don’t see it, make sure Dev Mode is enabled in your site.
Select the collection and, from the actions menu, select Add Dynamic page. Then, select Item page and Add to Site.
Repeat the previous step to add a List page.
In the list page, click the link or button to link to the item page in any of the items and select Connect with CMS.
Then, select the item page that you created in the previous steps.
The following list covers known limitations of the Contentful Integration with Wix app:
Contentful on Wix server is running on Wix Velo. In order to provide a reference as to how you can you create similar integrations with external CMS providers, we created a reference implementation of a Velo app that connects to Contentful. The code is available in the velo-app-code folder of this repo, and the creation of external connections in Wix is described in the external-connection-api service.