Skip to content

Adding and editing an entity record: fields, status, parent and translations

Describes Entities 0.7.0.

A record is one entry of an entity: one product, one team member. The record form shows the fields you defined on the entity and saves the values; the record page shows them read-only.

Where to find it

From an entity’s records page:

  • Add opens a new record (/admin/entities/machine_type/data/new).
  • View in a row’s menu, or a click on the title, opens the read-only record page (/admin/entities/machine_type/data/01a1dd57-2ff2-7d4f-b175-7d5904e587d8).
  • Edit in a row’s menu opens the form (/admin/entities/machine_type/data/01a1dd57-2ff2-7d4f-b175-7d5904e587d8/edit).

You need the Entities permission.

Editing the record Edge bander: language tabs, title, slug, the custom field Description, and status, parent and entity type Editing the record Edge bander: language tabs, title, slug, the custom field Description, and status, parent and entity type

Editing a record.

Basic information

  • Title: required. It names the record everywhere in the admin.
  • Slug (URL-friendly identifier): lowercase letters, numbers and hyphens. On a new record it follows the title as you type, until you change the slug yourself; empty it again and it goes back to following the title. Generate fills it in from the title at any time.

Custom fields

The Custom Fields card holds the entity’s own fields, in the order set on the entity. Required ones are marked with an asterisk. Some field types work in a particular way:

  • Boolean: a switch showing Enabled or Disabled.
  • Select Dropdown, Radio Buttons, Checkboxes: when the field allows it, an Other choice with an Enter custom value box for your own value.
  • Rich Text Editor: a rich text editor (HTML supported).
  • Image and Video: Choose… opens the media library to pick one file (Select Image or Select Video); Clear removes it.
  • Relation: pick records of the linked entity. When the linked entity has few records, they’re listed to choose from: checkboxes when several are allowed, otherwise a dropdown starting with — None —. When it has many, a search box (Search …) finds them, and each linked record gets a remove button.
  • Section Heading: a heading only, nothing to fill in.

Values are checked when you save. If something doesn’t fit, such as a missing required value, an invalid email or number, or an option that isn’t in the list, a Field validation errors message lists what’s wrong and the form keeps what you typed.

Record settings

  • Status: Draft, Published or Archived. A new record starts as Published.
  • Parent: optionally place the record under another record of the same entity. The records page then shows it indented under its parent.
  • Entity Type: which entity the record belongs to. It can’t be changed here.

Saving

The save button is at the top and the bottom of the form and is labelled with the entity’s name: Create … for a new record, Update … for an existing one. After creating, you’re taken to the new record’s edit form. Next to it:

  • Reset Changes: go back to the last saved version (Changes reset to last saved state).
  • Cancel: back to the records page without saving.

Translations

When the site has two or more languages, the title, slug and custom fields sit under language tabs. Fill in the primary language first. In another language, leave a value empty to use the primary language’s value; a slug left empty uses the primary language slug. Relation fields are the same in every language and are changed in the primary language.

When someone else is editing

As with entities, the first person to open a record edits it. Anyone else sees This record is currently being edited by another user. You are in view-only mode. and sees the changes as they’re made. If the entity’s fields change while you’re on the form, the form is checked again against the new fields and a message tells you so.

The record page

The record Edge bander shown with its description, status Published, Back and Edit The record Edge bander shown with its description, status Published, Back and Edit

A record's own page.

The read-only page shows the title and slug, every field with its value, and when the record was created and last updated. Booleans read Yes or No, links open in a new tab, a video shows as Video attached, and linked records are listed with a badge when they aren’t published. Back returns to the records page, Edit opens the form.

What it doesn’t do

  • A File Upload field can’t take a file on this form. It shows the files already stored and the field’s limits, with a note that file upload in admin forms isn’t set up.
  • A field’s default value isn’t filled in on new records.
  • A record can’t be moved to another entity.