Structure and style Collection pages

Structure and style Collection pages that work like templates and automatically update your design.

We’re transitioning to a new UI, and are in the process of updating our Webflow University content.

Anytime you create a new item (e.g., blog post, help article, etc.) in a Collection, a page is automatically created for it. Collection pages work like templates – the layout and design of the Collection page applies to all automatically generated item pages.

Collection pages are essentially templates for recurring pieces of content, such as blog posts, help articles, or even landing pages.

In this lesson, you'll learn:

  1. How to create a Collection page
  2. How to add and connect content
  3. How to preview Collection pages
  4. How to link to a Collection page
  5. About Collection page settings
A diagram displays a dotted line connection from a Collection to both a Collection list and a Collection page. The Collection list branches off to three profile tab previews. The collection page branches off to a single profile card.

Creating a Collection page

Once a Collection is created, a Collection page will automatically be created as well. You can select this Collection page by going to the Pages panel, and choosing it under the Collection pages section. A purple icon next to the Collection page indicates that it’s a CMS-generated page.

The CMS collection pages section displays four page templates called, Authors, Blog posts, collections and projects.

Adding and connecting content

You can design and develop the Collection page just like any other static page—but the power of Collection pages comes when you want to bring in dynamic content into that design.

Adding static and dynamic elements

Just like with Collection lists, elements dropped into a Collection page are static until they are connected to a field from the Collection. You design a Collection page like any other page, but the page acts as a template for all the Collection items.

You can connect different elements in your design to Collection fields by following these steps:

  1. Select an element on the Collection page
  2. Click the settings icon (or go to the Element Settings Panel — shortcut:D)  
  3. Check Get content from Collection
  4. Open the dropdown and choose the collection field you want to get content from

Once an element is getting content from a field, it is not just for that one item. This field is connected to the element across all item’s pages in that Collection.

Step one on the left, select the settings icon on the H1 text element. Step two on the right, the choose heading type settings panel displays H1 through H6 buttons, a learn more message with a Ok, got it button, a check box for the CMS Get text from a collection called Blog posts with a dropdown menu and a show all settings button.
Pro tip
Static elements have blue outlines and dynamic elements, or elements that have data coming from the CMS, have purple outlines on the canvas.

Previewing and switching Collection pages

When you're editing a Collection page, it appears as if you're editing only one of the items in the Collection. In fact, you’re editing all other pages simultaneously because you’re editing a template.

You can switch the content in the page to any Collection item using the dropdown in the top bar. You can go to a specific page by typing the name of the page in the search bar at the top of the Collection pages dropdown or in the Quick find bar.

The blog posts template collection page displays a dropdown to select between 6 different pages.
Helpful shortcut keys
Holding Shift+Option (Shift+Alt on Windows) and pressing the left and right arrows on your keyboard will switch collection items to the next or previous item in the list.
Three collection items displaying the process of switching from one to another.

Linking to Collection pages

You can link to a Collection page from other Collection pages or from a Collection list. Follow these steps to link from a Collection list:

  1. Add a Collection list
  2. Connect it to a Collection
  3. Add a button, or any other link element to the Collection list
  4. With the link element selected, click the gear icon (or go to Element Settings Panel)
  5. Choose the purple Collection page link option
  6. Choose Current Item

This will link each button in the Collection list to its respective Collection page created for each item.

Pro tip: You can also connect any link element to a link field in the URL field type of your link settings.

Collection page settings

In the Collection page settings, you can set the SEO meta title & description, Open Graph title & description, RSS, and custom code for your Collection page templates. However, unlike static pages settings, Collection page settings can have dynamic values, meaning they result in unique information for each Collection item page.

You can access the Collection page settings through the settings icon that appears when you hover over a Collection page template in the Pages panel.

A settings icon is highlighted on a Blog post template page under the CMS collection pages section.

General

You can add a Collection template page to a folder so you have greater control over Collection item page URLs and SEO. When you set a parent folder for a Collection template page you can serve those Collection’s item pages on a subdirectory URL. For instance, if you have a parent folder named “Content” and a Collection of blog posts, the URL can be “website.com/content/blog/example-post.” 

To set a parent folder on a Collection template page:

  1. Go to the Pages panel
  2. Hover over the Collection template page and click the settings “cog
  3. Go to General > Parent folder
  4. Select your parent folder from the dropdown
  5. Click Save
Note: When you set a parent folder on a Collection template page, the Collection template page won’t appear under the folder name in the Pages panel.

Publish settings

You can decide whether or not the Collection’s template pages are published along with your site. This is helpful, for instance, to prevent publishing if you don’t want a Collection’s template pages to be live and indexed by search engines.

To enable publishing for the Collection’s item pages:

  1. Go to the Pages panel
  2. Hover over the Collection template page and click the settings “cog
  3. Go to Publish settings
  4. Switch the toggle “on

To prevent the Collection’s item pages from being published:

  1. Go to the Pages panel
  2. Hover over the Collection template page and click the settings “cog
  3. Go to Publish settings
  4. Switch the toggle “off

Dynamic SEO Settings

You can define a template for the page titles and descriptions using Collection fields. And, you can see how they'll look in search engine results pages (SERPs) in a preview box.

Learn more: Setting meta title and description

The SEO settings panel displays a search result preview, a title tag with a Name field added and a meta description input field with a blog post summary field.

Dynamic Open Graph Settings

Here, you can set the information that will be presented when sharing links to Collection pages on Facebook, Twitter, LinkedIn, Pinterest, and Google+. Using Collections fields will create a template for each page, resulting in unique Open Graph information for each page.

Learn more: Setting Open Graph settings

The Open Graph Settings panel displays an image preview, an input field for a title, a check box for Same as SEO title tag, an input field for a description and a check box for Same as SEO meta description and a drop down menu for the open graph image.

RSS Feed Settings

You can enable an RSS 2.0 feed for a Collection in the Collection page settings. This publishes a feed that RSS reader users can subscribe to and get updates when you publish new Collection items.

The RSS Feed Settings panel displays a description and a radio button to Enable RSS 2.0 feed for a collection item called Blog Post pages.

Here you can define the feed settings. You can use Collection fields to create a dynamic template for RSS channel title, description, and other settings. You can also see a preview of the feed right in the page settings. Then, ‍you can copy the RSS URL to use with other apps, or even add a link to it on your website.

Learn more: RSS feeds

Custom code

You can add custom code and scripts to the <head> or </head><body> tag of a Collection page template. This will apply to all Collection pages. And if this code contains any information that you would like to have a unique value per Collection item page, then, you can replace that value in the code with a Collection field. Simply, select the value, and click on the purple </body> + Add Field located at the upper right of the custom code text field.

Need to know
Custom code and scripts will only appear on the published site.
The Custom Code settings panel displays an Inside <head> tag input area and a Before </body> tag input area.

Table of contents

Continue learning

Hmm…we couldn’t find any results for “search query”. Try a different search term or check out our community forum.

Search the forumReset the filter
Load more

Filter

Reset
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Topics
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Back to top