Lesson info

A Collection is like a database—it's where content can be stored and dynamically referenced throughout a project. Different Collections signify different content types, and an individual piece of content within a Collection is called a Collection item.

In this lesson, we’ll cover:

  1. ‍Creating Collections
  2. ‍Adding Collection fields
  3. ‍Creating Collection items
  4. ‍Editing Collections

Assets

Want to follow along with this lesson? Fortunately, we created a zip file which contains all the assets used in the project, and we've included that link 

right here
.

Transcript

A Collection is like a database. It's where we can store all our content that can be used throughout our project dynamically. And even if you don't have content to start, creating a Collection gives us the option to use dummy content. So you can get right to designing and developing dynamically.

So. Let's create a Collection.

In any project, we can access the CMS from the Designer. As we already know, the content we put into a Collection — these items — the content is entered into fields.

When you go to create a Collection, you can use one of the presets, which give a good starting point, or build a Collection from scratch.

If you do that, you can really create anything. The fields are completely customizable and you have really granular control over the details. When we build from scratch, we can tailor the fields in our Collection to the content we're working with.

But for this example, let's use the Blog Posts preset.

And something to note as we're looking at this: these fields aren't HTML elements — they're simply fields where data is stored. Down the road, after we finish creating this Collection, we can bind this content to actual elements in our projects — we can use it almost anywhere.

We can give our Collection a name, we can customize the URL, and we can set up the fields. Now later on, we can add or change content from the Editor. So as you're setting up Collection fields, you'll see a preview on the right for each corresponding field: what the general layout will appear like when using the Editor. The Editor's the option we have available if we want other collaborators or clients to go in and add their own content.

Of course, you can add a new field, you can click in and edit an existing field (or even go to remove that field altogether), and you can sort your fields by grabbing the field name and dragging into place.

You can always come back later to change any of this — the only thing set in stone is the URL, so make sure it appears how you want it. When you're ready, press Create Collection.

And that's it. You just created a Collection. Actually we just created a Collection. But maybe you did, too.

Now you might have noticed that we clicked to add dummy items, which have now populated our Collection. Of course, we can add or import legitimate content, but dummy content lets us get going with design and development inside our project.

We cover a lot more of this in additional content, but this is a good starting point for creating and conFiguring a Collection in the Webflow CMS.