Content types

A content type says what an item has: its fields, how its page is laid out and where its page goes. Whoever builds the site defines the types; authors then write items of them in Content.

Content types are an advanced option: with Show advanced options on in the user menu, Content shows Edit type under each type and New type to make one. The type opens in the place of an item’s form.

The content type Volunteer day open: its labels per language, the template of its pages, and its fields, each with label, name, type, Required, Translated and the buttons to move or remove it

Number

Part

What it does

1

Edit type and New type

Open the chosen type, or a new one, in the form beside.

2

The type

Its name (on a new type: lowercase letters, digits and hyphens, the folder of its items; it cannot change later) and its label in each language, as authors see it.

3

Template of its pages

Every item page is laid out by this template; in it, each locked component says which fields it shows. A new type can have its own template, made from the site’s page template with its fields already placed.

4

Fields

One block per field: its label in each language and its name, which the template and lists use.

5

Type

What the field holds (below).

6

Required and Translated

A required field must be filled before the item gets a page. A translated field has a value per language; one that is not, such as a date, is the same in every language.

7

Move and Remove

The order of the fields in the form. Add a field, under the last one, adds another.

Field types

  • Text: a line of text.
  • Formatted text: paragraphs with headings, lists, links and bold.
  • Image: an image of the site’s assets.
  • Link: a text and an address.
  • Date and Date and time: for events, deadlines and sorting.
  • Number: a price, a length, a count.
  • Yes or no: such as “sold out”.
  • Choice: one of the choices written in the field, separated by commas (jazz, blues, rock).
  • Tags: tags of the site.
  • Another item: an item of the type chosen in the field, such as the speaker of a talk.

What each field is for, and where the pages go

The end of the type form: What each field is for (Page title, Description, Image, Date, Tags), Where the item pages go (site, page they go under, main address), and Save type, Cancel, Delete type

Number

Part

What it does

1

What each field is for

Which field gives the item’s page its title, its description (for search engines and lists), its image (for lists and link previews), its date (for lists and sorting) and its tags.

2

Where the item pages go

Each item becomes a page under the page chosen here: under Volunteer, the item city-park-lake is at /en/volunteer/city-park-lake/.

3

A place

The site and the page the items go under. When the type is shared by several sites, each has its place, and the one marked Main address is the address search engines take.

4

Save type

Saves the type. Cancel leaves it as it was; Delete type sends it to the trash, only once it has no items left.

When a change touches items already written, SeedPage says how many before saving: items that lose a removed field’s value, items whose value no longer fits a field’s new type (left out until corrected), and items without a field that became required (no page until it is filled).

A collection made into a type

A collection of Data can become a content type with Make it a content type: each column becomes a field, its type read from its values, and each row an item. The collection stays as it is until the pages that show it change.