F'ing Sweet CMS Library for Webflow: Implementing Combined Section

Published on
May 4, 2020

A Comprehensive Guide to the F'ing Sweet CMS Library for Webflow

Are you ready to take your Webflow skills to the next level with the F'ing Sweet CMS Library? In this tutorial, we'll walk through the combined section, focusing on how to combine CMS dynamic lists into a single dynamic list using the F'ing Sweet CMS Library for Webflow.

Introduction to Combined Section

The combined section in the F’ing Sweet CMS Library allows you to streamline your collection items by combining them into a single dynamic list wrapper. This feature is particularly useful when setting up filtering and sorting functionalities, as you can consolidate all your items into one list wrapper, rather than dealing with multiple separate dynamic lists.

Use Cases

Let's delve into some common use cases where the combined section comes in handy:

  1. Large Item Lists: When you have a substantial number of items in a list, say over 100, you might not want them broken up into individual dynamic lists on the published site. The combined section allows you to keep all these items within a single dynamic list wrapper.

  2. Consolidating Items from Different Collections: If you need to display items from different collections in the same list, the combined section makes it possible. For example, you might want users to filter through project services and clients simultaneously. With the combined component, you can achieve this seamlessly.

Now that we understand the potential use cases for the combined section, let's explore how to implement it in Webflow using the F'ing Sweet CMS Library.

Implementation of Combined Component

The combined component is incredibly easy to implement. It requires just one line of code. Let’s take a closer look:

new fncms(".blog-post-list").combined();

Let's break down the code step by step:

  1. Creating an Instance: We start by creating a new instance of the library targeted at our blog post lists.

    ```javascript
    var blogPosts = new fncms(".blog-post-list");
    ```

  2. Using the Combined Component: Next, we store this new instance in a variable called blogPosts. Then, we run the combined component on this variable.

    ```javascript
    blogPosts.combined();
    ```

That's all it takes! By executing this line of code, the combined component will merge all the collection lists with the class .blog-post-list into one single dynamic list.

Customization

It's important to note that you can customize the class and variable names to align with your specific project needs. For instance, you can replace blog-post-list with your own class name, and blogPosts with a different variable name.

Key Considerations

When implementing the combined component, here are some key considerations to keep in mind:

  • Matching Class Names: Ensure that all the collection lists you want to combine have the same class, such as .blog-post-list. It's crucial that the class used in the JavaScript code matches the actual class applied to your dynamic lists in Webflow.

Live Demonstration

If you'd like to see the combined section in action on a live Webflow site, we have a cloneable site with detailed video walkthrough examples. This will give you a practical demonstration of how the combined component works on a published Webflow site using the F’ing Sweet CMS Library.

Conclusion

The combined section in the F'ing Sweet CMS Library for Webflow offers a straightforward and efficient way to consolidate dynamic lists. By using the combined component, you can streamline your workflow and enhance the user experience on your Webflow sites. Whether you're dealing with an extensive list of items or need to combine items from different collections, the combined section provides a powerful solution to simplify your CMS management in Webflow.

If you're ready to take your Webflow proficiency to the next level, give the combined section a try and experience the efficiency and simplicity it brings to your CMS management. Happy Webflowing!