The Designer shows your items on pages in two ways: a content template for each item, and lists on any page. You set both in the Designer. The items come from the Content panel.
Content templates
Each collection has one content template. It is the design of the page of each item. Example: the template of Blog gives each post the address /blog/<slug>, such as /blog/summer-pop-up.
The App makes the template when you make the collection.
- Open the Designer.
- In Pages, find Content templates.
- Click the template of the collection. Example: Blog.
The Design panel shows one item in the template. To show a different item, select it in Preview item in the top bar.
Show a field on the template
- On the template, select an element. Example: the heading.
- In Element settings, find the Content section. From shows the collection.
- In the row of the element, select a field. Example: in Text, select Title.
The row depends on the element.
| Row | Elements | Fields |
|---|---|---|
| Text | Headings, paragraphs and other text | Text values, such as Title or Excerpt |
| Rich content | A container for the body | A Content field |
| Image source | Images | An Image field |
| Alt text | Images | A text field |
| Link | Links | A Link field, or the page of the item |
A Reference field shows as a group in the list. Open the group to select a field of the linked item. Example: under Author, select Name.
Show a list of items on a page
- In the Add menu, open Dynamic (CMS).
- Select Content, then put it on the page.
- In the Content section, at Connect to, select the collection. Example: Blog.
- Select the List in the Content block.
- Set the list. See the table below.
- Select the elements in the first row of the list, and select their fields.
The list repeats the first row for each item.
| Setting | What it does |
|---|---|
| Layout | Block, Bulleted list, Numbered list or Slider |
| Filter | Click Add filter to show only the items that match. Example: Roast is Dark. |
| Sort | Click Add sort to set the order. Example: Published on, newest first. |
| Limit | The maximum number of items. 0 shows all items. |
| Start at | The number of items to skip before the first item |
| When empty | What the page shows when the list has no items |
Dynamic (CMS) also has List, to add a second list in a Content block, and Slider, a carousel with one slide per item.
Which items show
A list shows only the items that go live at the next publish. These are items set to Publish with all required fields filled.
A Draft, Archived or Incomplete item does not show in a list, also not on the Design panel. So the Design panel shows what the live site will show.
When a list is empty
If a list has no items to show, the Content section shows Empty list and the reason.
In When empty:
- Hide hides an element, for example the section around the list, when the list is empty.
- Show shows an element only when the list is empty. Click Add empty state to add one. Example: "No posts yet."
Let visitors filter a list
- In the Add menu, open Dynamic (CMS).
- Select Filter, then put it on the page.
- In the Content section, at Filters, select the list.
- Select the search field in the filter.
- At Field, select the field that the search field filters. Example: Title.
- At Match, select how the typed value is compared to the field.
You can add more inputs and select boxes to the filter. Set Field and Match for each one.
For display rules and the other settings of an element, see Elements — controls and interactions.