Learn how to separate CMS items with a comma in Webflow easily and efficiently. In this tutorial, we'll show you a simple yet effective way to comma separate your CMS items in Webflow, making it easier to manage and display your content. Whether you're a web developer, designer, or content creator, this tip is a game-changer for anyone working with Webflow's CMS. Watch to find out how to separate CMS items with commas in Webflow and take your website to the next level!
<style>
.cms-item:last-child .cms-style {
display: none;
}
</style>
Webflow is an incredibly versatile platform for creating dynamic websites, and one of its standout features is its CMS (Content Management System). A common challenge when working with CMS collections is how to display items separated by a specific symbol, such as a comma, without the separator appearing after the last item. This guide will walk you through the process of achieving this, step by step, while keeping your design clean and professional.
Custom separators improve readability and aesthetics, especially when listing items like tags, categories, or attributes. However, ending a list with a separator (e.g., a trailing comma) can look unpolished. By learning how to manage separators effectively in Webflow, you’ll elevate the quality of your website’s design and user experience.
In Webflow, create your CMS collections. For this tutorial, we’ll use two collections:
Go to the Webflow Designer and add a collection list to your page. For this example, we’ll display only the items tagged as “Fruit.”
Within the collection list, add a text element and connect it to the item name field in your CMS. This will display the names of all the items in the filtered collection.
To ensure the items are displayed inline:
.cms-list
).Here’s where the magic happens:
Preview your page to ensure everything looks as intended. The items should appear in a clean, comma-separated list, with no trailing comma after the final item.
By implementing this technique, you’ll not only enhance your Webflow site’s design but also improve its usability and professionalism. Custom separators might seem like a small detail, but they can make a big difference in how users perceive your website.
Ready to take your Webflow projects to the next level? Follow this guide and start creating polished, dynamic CMS lists today!