In Webflow, how can you reference a CMS item in rich text for featured items in an article?

Published on
September 22, 2023

To reference a CMS item in rich text for featured items in an article in Webflow, you can follow these steps:

  1. Create a Collection: Start by creating a collection in the Webflow CMS and add the necessary fields for your featured items. For example, you might have fields like "Title", "Image", "Description", and "Link".

  2. Populate Collection Items: Add items to your collection and fill in the fields with the relevant information for each featured item. Make sure to include the title, image URL, description, and the link.

  3. Add a Rich Text Field: In the Collection Editor, add a new field of type "Rich Text". This field will be used to reference the featured items in an article.

  4. Insert Dynamic Text: Go to the page where you want to reference the CMS item in the rich text for featured items. Inside the rich text element, place your text cursor where you want to insert the dynamic content.

  5. Insert Collection Field: Click on the + symbol on the rich text toolbar, and select "Collection field" from the dropdown menu.

  6. Choose the CMS Collection and Field: In the "Choose a collection and field" modal, select the collection from the dropdown list and choose the field you want to reference. For example, if you want to reference the title of the featured item, select the "Title" field.

  7. Insert Dynamic Reference: After selecting the collection and field, the dynamic reference will be inserted into the rich text element. This reference will display the data from the corresponding CMS item, such as the title of the featured item.

  8. Update Styling: You can customize the styling of the dynamic reference, like font size, color, or text formatting, using the rich text styling options.

  9. Repeat for other Fields: If you want to reference additional fields from the CMS item, repeat steps 4 to 8 to insert dynamic references for those fields as well. For example, you might want to include the image or description of the featured item.

  10. Publish and Test: Once you are done inserting the dynamic references and styling the rich text, publish your changes and test the result. Make sure that the referenced content is displaying correctly on the live site.

By following these steps, you can easily reference a CMS item in rich text for featured items in an article in Webflow. This allows for dynamic content updates without having to manually update the article each time the featured items change.

Additional Questions:

  1. How can I add multiple featured items in an article in Webflow?
  2. Can I use different CMS collections for different articles?
  3. Is it possible to customize the layout of the featured item within the rich text element?