Contents

Collections

Collections hold the repeating content of a site: news, case studies, team members, job openings. You define the fields once, and every entry of the collection follows the same structure, so your frontend always knows what it gets.

You find collections under Brain > CMS > your site > Collections. The list shows each collection with its number of fields and entries.

Create a collection

Steps

  1. In Nucleo, go to Brain > CMS, open the site, and then click the Collections tab.
  2. Click New collection.
  3. Enter the name, such as News. With Auto from name ticked, the slug follows it.
  4. Under Fields, for each field of an entry:
    1. Enter the Field key, the name your frontend reads, and a Label.
    2. Pick the Field type (see the table below). For a select, enter the options separated by commas.
    3. Tick Required if every entry must have it, and Localized if it takes a different value in each language.
    4. Click Add field for the next one, or Remove field to drop one.
  5. Click Create collection.
Field typeWhat you enter
textA line of text.
rich textFormatted content, written as HTML.
imageAn image URL, copied from the Media tab.
dateA date.
numberA number.
booleanOn or off.
selectOne of the options you defined.
referenceThe identifier of another item.
listA list of values, written as JSON.
Caution
Plan the structure carefully: the fields of a collection can't be changed from the interface once it is created.

Write an entry

Steps

  1. In the Collections tab, click the collection.
  2. Click New entry. The entry editor opens.
  3. Pick the Language tab you want to write.
  4. Enter the Title and check the Slug (with Auto from title, it follows the title).
  5. Fill in the fields.
  6. Click Save, or Save & close.

A field that isn't localized is still stored per language: the editor reminds you to use the same value in every language.

Publish an entry

Open the entry, pick the Language tab, and then click Publish. Each language is published on its own, and only published entries are served by the delivery API.

Once published, View on site opens the entry on your frontend, when the site's public address is set.

Note
Entries have no revisions to restore from the interface: to go back, edit the entry and publish again.

Read the entries list

A collection's page lists its entries, 50 per page, with one column per language showing the status of each translation: Published, Published · draft, Draft, or a dash when the language isn't written yet.

Delete an entry or a collection

  • To delete an entry, click the trash icon on its row, and then click Delete. It disappears from the delivery API immediately.
  • To delete a whole collection, open it and click Delete collection, and then confirm. The collection and all its entries stop being served.
Caution
Deleted entries and collections can't be restored from the interface.

Related articles