Show a collection on a page
Put a collection's entries on any page as cards, a list or a table, and choose which ones show, in what order and with which details.
A Collection section shows the live entries of one collection on a page. You choose the layout and what each card shows; the entries themselves stay under Collections. Add a dish or change a price there, and every page showing it updates by itself.
Add a collection from the collection itself
This is the quickest way, and it lets you pick the exact spot.
- In the sidebar, open Data, then Collections, and open the collection.
- Press Add to a page.
- Choose the page. Type in Find a page to narrow the list. Pages that already show this collection are marked Shown here.
- Choose where on the page it goes: the strip shows the page's sections in order, with a spot between each. Press Insert here on the spot you want (it changes to Adds here), or move with the arrow keys.
- Choose a Layout:
- Cards: a grid of cards with pictures.
- List: one per row, the small line at the end.
- Table: rows and columns, compact.
- Press Add to this page.
The page opens in the editor with the new section selected. Publish the page when you're ready.
Add a collection from the editor
- Open the page in the editor and use Add a section.
- Choose From your data. Every collection on your site is listed, ready to drop in.
- Pick the collection. It's added as cards; you can change the layout afterwards.
No collections yet? From your data offers Create a collection, which takes you to Collections.
Choose what each card shows
Select the section, then look under Collection in its settings.
- The menu at the top says which collection it shows and how many entries are live. Choose another collection here to swap it. Edit entries opens the collection in a new tab.
- Under Each card shows, a small card previews the result. Below it, choose which field fills each part of the card: Image, Title, Small line, Text and Tags. Choose Nothing to leave a part out.
If nothing in the collection is live yet, the preview uses sample words until you publish some entries.
Choose which entries show, and in what order
Under Which entries, the settings read as a sentence, like "Show 6 courses where Level is Beginner, by price, lowest first."
- Choose how many to show, or all.
- To show only some, change of any kind to a field, like where Level is, then choose the value.
- Choose the order. Leave it on in the collection's order, or pick a field and direction.
Link cards to their own pages
When the collection has entry pages on, switch on Link each card to its page so visitors can press a card to see the whole entry.
Say what shows when there's nothing to list
In When nothing matches, write the words shown when no entries fit, like "No courses this month. Check back soon." If you leave it empty, visitors see a line like "No courses yet."
Change the heading, text or layout
The section has its own Heading and Introduction above the entries. Edit them on the page or in the settings. To switch between Cards, List and Table, change the section's layout in its settings.
Show entries inside another section
A built section can hold a collection too. Add an item and choose Entries from a collection, then set it up under Collection the same way as above.