9/18 | Validate feature ideas earlier with AI-driven prototypes

What are best AI tools? Take the State of AI survey

Builder.io
Builder.io
Contact sales

9/18 | Validate feature ideas earlier with AI-driven prototypes

What are best AI tools? Take the State of AI survey

Builder.io
Builder.io
< Back to blog

Data Management

Using Contentful data in Builder's Visual Editor

September 23, 2021

Written By Kapunahele Wong

Last updated November 17, 2023.

When you have data that resides in Contentful that you want to use in your Builder app, you can use Builder's data provider plugins to fetch and display it on your site. When you have data such as content types and content entries that reside in Contentful that you want to use in your Builder app, you can use Builder's data provider plugins to fetch and display it on your site. This allows you to connect that content to any component within the Visual Editor without the need to wait on any migration.

Goals

This tutorial shows you how to get data from Contentful's composable content platform into your Builder app through the following:

  1. Enabling Contentful
  2. Authenticating to Contentful
  3. Using your data in your Builder app

What we'll create

In this example, we'll pull in data from Contentful's content management system about historical figures. Our layout uses one of the Builder.io built-in templates to display some leaders from the past. You can duplicate what we have or create your own data.

Picture of four monarchs.

Image credits:

If you'd like these images, you can find them on Wikipedia.

The sample data

In Contentful, we have a Content Model called Monarch.

Monarch Content Model in Contentful.

Within Monarch, we have a number of fields, Name, Place, Reign, Image, and Image Credit.

Fields in the Contentful Monarch model.

Enabling Contentful

To enable a third-party data provider, you have to configure Builder to be able to work with the provider.

Open a Page in the Builder Visual Editor.

In the Page, open the Data tab.

Data tab in Contentful.

The Data tab displays the sources available. Builder as a data source works by default, but the other options need you to enable them. In this example, we’ll enable Contentful, so click the icon for Contentful.

Builder prompts you to enable the plugin. Click Enable Contentful Plugin.

Builder prompt to enable Contentful plugin.

Authenticating to Contentful

In order for Builder and Contentful — or other data provider — to communicate, you must authenticate from within Builder.

When you enable a data provider, Builder prompts you to configure your settings at the bottom of the screen.

Click Configure so you can authenticate.

Prompt to configure Contentful.

Tip: If you miss this prompt, you can still continue setting up your data provider by going to Integrations and clicking on the Settings button for that data provider.

In the settings dialogue, enter your Space ID and Access token (called Content Delivery API - access token in Contentful), both of which you can find in your Contentful account under Settings -> API Keys.

Contentful settings in Builder.

Click the Connect button.

Using your Contentful data

Now that you've authenticated, click on the Contentful icon or +Connect Data in the Data tab to get to your resources.

Data tab in Builder.

Select Monarch.

Builder prompt to pick a resource to include.

Now that we are connected to our data, we need something on the page to display it. We'll use a pre-made template included in Builder. Under the Insert tab, in the Featured section, hover over Columns and drag in Gifts x 4 onto the page.

Insert tab in Builder showing a featured built-in columns template.

On the Data tab, your Contentful Monarch should be featured at the top. Click Pick an Entry.

Data tab with option to pick an entry from the Monarch Contentful data.

Select Queen Liliʻuokalani.

List of monarchs that you can choose from.

Select the first heading.

Heading in one of the Columns.

On the Options tab, click the Data Binding icon with the four dots in the upper right corner.

Options tab with the data binding icon highlighted.

Scroll down or type to filter and select Monarch - Fields - Name.

Image of the Monarch Fields Name option highlighted in the dialogue that's titled "Get the value for this from:".

Now "Queen Liliʻuokalani" populates the text field.

Queen Lili`uokalani shows in the text field.

There's also a note that the text field is bound to dynamic data.

Note about the text field being bound to dynamic data.

Tip: If you need to change the data you're binding to, click the same Data Binding icon to the right of the note in the Options tab.

Repeat this process for the other fields, such as place and reign.

Adding an image

Select the placeholder image in the template. With the image selected, you can bind the monarchʻs picture.

A picture of abstract painting.

To find the Queen's photo, click the Bind Data icon to the right of the Image Options tab.

Edit Binding icon in the Options tab for the Image.

Select Monarch - Fields - Image - Fields - File - Url.

Image showing the URL field to bind.

The Queen's image should show up when you select it.

Adding a second data source

Now that you've added one Monarch, you can add many more. To get to our other historical figures, we need to add more Monarchs so we can get to their data.

The Data tab now has the current Monarch, but we need to add another. Click the +Connect Data button and select Contentful or just click the Contentful icon.

One monarch in the Data tab as an entry.

When prompted, choose Monarch.

Prompt to pick a resource to include with Monarch as an option.

Now Monarch 2 appears in the Data tab.

To make the second Monarch's data available, you need to select it so Builder knows which Monarch to use for Monarch 2. Click on the three dots to the right of Monarch 2 to expand the options. Click the Pick an Entry button.

Pick an Entry button in the Entry section of the Data tab.

Select another Monarch to associate it with Monarch 2.

Searchable list of Monarchs.

Now, when you click the Bind Data icon for the different elements, the Monarch 2 data is available.

Choosing Monarch 2 name in teh prompt to "Get the value for this from:".

What's next

This article guided you through pulling in data from Contentful's headless CMS. Data binding is a robust feature available throughout Builder, indicated by the icon with four dots. You can use data binding to get styles, list data, and you can even filter your results.

Once you have your data from Contentful you can utilize Builder for visual editing. Dive into our docs for additional use cases and learn how to integrate Builder with other technologies in any tech stack. Streamline your digital experiences for developers and non-technical users.

Share

Twitter
LinkedIn
Facebook
Share this blog
Copy icon
Twitter "X" icon
LinkedIn icon
Facebook icon

Visually edit your codebase with AI

Using simple prompts or Figma-like controls.

Try it nowGet a demo

Design to Code Automation

A pragmatic guide for engineering leaders and development teams


Continue Reading
design9 MIN
How to generate (actually good) designs with AI
September 17, 2025
AI9 MIN
7 Levels of Context Engineering for Designers
September 16, 2025
Design to Code8 MIN
Git Branching for Designers
September 11, 2025

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Resources

User Guides

Developer Docs

Forum

Blog

Github

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

  • Fusion

  • Publish

  • Product Updates

  • Design to Code

  • Headless CMS

    Multi-Brand CMS

  • Landing Pages

  • Web Apps

  • Prototypes

  • Marketing Sites

  • Headless Commerce

  • Documentation

  • Fusion Docs

  • Publish Docs

  • Blog

  • Webinars

  • Guides

  • Case Studies

  • Community Forum

  • Partners

  • Affiliate Program

  • CMS Integrations

  • CMS Blueprints

  • Glossary

  • Figma to Code Guide

  • Headless CMS Guide

  • Headless Commerce Guide

  • Composable DXP Guide

  • About

  • Careers

  • Contact Sales

Security

Privacy Policy

SaaS Terms

Compliance

Cookie Preferences

YouTube icon
Github icon
Blsky Icon
Twitter "X" icon
LinkedIn icon
Feed Icon
Gartner Cool Vendor 2024