Bind content

What is content binding?

How content binding works?

Content binding allows you to connect the visual layout in an experience to your structured content. You can fill the components in your experience with your existing content. 

You can add content to a component through its content properties. Some content properties are used for content that is directly visible on the canvas, others aren’t. To explain this, let's consider a button component as an example. Binding content to the content properties of a button component results in the following:

  • "Label" property - Updates the button label in the canvas.

  • "Target URL" property - Updates the link that is opened when the button is clicked.

How to bind content in Experiences?

In Experiences, you can bind content to your component according using the following sources:

  • Structured content - Bind content from the entries and assets.

  • Manually - Manual content is not reusable, but only lives within a single experience you are editing. Use manual binding for single-use content - for example, for a marketing campaign landing page.

Bind content to a component

Bind content

To bind content to a component:

  1. Log in to the Contentful web app.

  2. Go to the Experiences tab.

  3. Either go to the existing experience and open it or create a new one.

  4. Select a component on the canvas or drag and drop a new one to it.

  5. Switch to the Content tab in the right sidebar.

  6. In the Content properties menu, select the desired content property.

  7. In the right sidebar, select a content source according to the following options:

    • Entry - Select an existing entry or create a new one to bind its content.

    • Asset - Select an existing asset or create a new one to bind its content.

    • Manual - Select this option to manually add text or link to an asset.

  8. After you select an entry or an asset, click a radio button against a field to which you would like to bind, from the entry or asset editor preview in the right sidebar. The content of this field is displayed on the canvas.

  9. Click Save to apply changes to your experience.

Edit bound content

You can edit the content of an entry or asset that is bound directly from the experience editor.

NOTE: Publishing updates to an entry or asset that is bound affects all entries and experiences where it is referenced.

Edit binded content

To edit bound content:

  1. Log in to the Contentful web app.

  2. Go to the Experiences tab.

  3. Go to the existing experience and open it.

  4. In the experience editor, select the component in which you would like to update the content.

  5. Switch to the Content tab in the right sidebar.

  6. In the Content properties menu, click the selected content property to open its editor preview in the right sidebar.

  7. Click the Edit icon in the editor preview. The editor page is displayed.

  8. In the entry or asset editor, make the necessary updates.

  9. Optional: Click Publish so that the changes go live.

  10. Go back to your experience. The bound content is updated.

Was this helpful?
add-circle arrow-right remove style-two-pin-marker subtract-circle remove