Skip to content

Field types

When you add a field to a content type, the first thing you choose is its field type. The field type decides what can go into the field (text, a number, an image, a list of blocks) and what editors see when they fill it in. Manablox comes with thirteen field types. This page describes each of them.

You add fields in the admin under Content types: open a type, click Add field and pick a field type from the list. How the builder works is explained in Building content types. Developers can add their own field types too; see Custom field types.

The names below are the ones the Add field list shows.

Field typeWhat editors seeTypical uses
TextA one-line box, a bigger box, or a code boxHeadlines, summaries, short labels
Rich textA text editor with a toolbarArticle bodies, descriptions
NumberA number boxPrices, quantities, ratings
BooleanA Yes/No switch“Show on start page”, “Sold out”
DateA date picker, with or without timeEvent dates, publication dates
SelectA dropdown, or buttons to tick severalCategories, colours, sizes
LinkA choice between a document and a web addressCall-to-action buttons, “Read more” links
AssetAn image or file pickerHero images, downloads, galleries
Content referenceA search to pick other documentsRelated articles, the author of a post
User referenceA dropdown of the space’s membersThe person responsible for a page
BlockOne block with its own fieldsA fixed hero section
BlocksA list or grid of blocksPage builders: sections stacked freely
Content templateA dropdown of templatesA shared footer or sign-up section

Whatever its type, every field has these settings:

SettingWhat it does
LabelWhat editors see above the input. Can be changed at any time
Technical nameThe name the website’s code uses. Fills itself in from the label, and is locked once the type is saved
RequiredThe document cannot be saved while this field is empty. See Required and unique
TranslatedThe field keeps a separate value per language. Off means one value shared by all translations; see Languages and translations
UniqueNo two documents of this type may hold the same value in this field. See Required and unique
PlacementMain column (with the title and the body) or Sidebar (beside it, for extra details)
Width25%, 50%, 75% or 100% of the column. Two 50% fields share a row
PlaceholderGrey example text shown in an empty input
Help textA hint shown under the input

The settings that belong to one field type are grouped under Value (what the field holds and how it is entered) and Rules (what a value must satisfy).

Both switches are checked every time a document is saved, drafts included. If a field breaks one of them, nothing is saved and the field shows the reason: “This is required.” or “Another document of this type already uses this value.”

Required refuses an empty field. What empty means depends on the field type:

Field typeEmpty means
TextNothing, or only spaces
Rich textNo text, no image and no divider
SelectNothing chosen
Asset, Content reference, User referenceNothing picked. An automatic list is never empty
BlocksNo blocks
DateNo date
Number, Boolean, Link, Block, Content templateNo value at all, for example a cleared link, no block added or No template. 0 and No count as values

Unique makes sure no two documents of the same content type in the same space hold the same value, for example an article number or a product code.

  • It works for Text, Number and Date fields, and for Select, Asset, Content reference and User reference fields that allow only one choice. On other fields, and on the fields of a block type, the switch has no effect.
  • Values must match exactly to clash: Shoe and shoe are different.
  • Empty fields are never compared, so any number of documents may leave the field empty.
  • A translated field is compared within one language: an English and a German document may share a value. A field that is not translated holds one value for every language, so it is compared across all of them.
  • The translations of one document never clash with each other.
  • Saving compares with the drafts of the other documents. Publishing compares with what the other documents have live. If publishing is refused, the message pops up instead of appearing on the field.
  • A copy made with the duplicate button starts with the default values in its unique fields instead of the original’s values. See Editing content.

Plain text without formatting. Editors see a normal text box.

SettingWhat it does
InputSingle line, Multi-line (a bigger box for a few sentences) or Code (a box in a fixed-width font, for snippets such as an embed code)
Default valueThe text a new document starts with
Min length, Max lengthHow short or long the text may be. With a maximum, editors see a counter such as 12 / 80
Must match (regex)A pattern the whole text has to follow, for example an order number like ABC-123. Leave empty unless a developer gives you a pattern

Typical uses: a headline, a short summary (Multi-line), a button label, an SEO description.

Formatted text: headings, bold and italic, lists and links. Editors see a text editor with a toolbar above it. The website receives the text in a structured form, not as a finished web page, so it can style it to match the design.

SettingWhat it does
Editing toolsWhich buttons the toolbar offers. Click a tool to switch it on or off

The available tools are Bold, Italic, Strikethrough, Code, Link, Heading, Bulleted list, Numbered list, Quote, Code block, Divider, Align left, Align centre and Align right. A new Rich text field starts with Bold, Italic, Link, Heading, Bulleted list and Numbered list.

Typical uses: the body of an article, a product description, the text inside a teaser block.

A number. Editors see a number box.

SettingWhat it does
Default valueThe number a new document starts with
Whole numbers onlyNo decimals, for things you count
Minimum, MaximumThe allowed range

Typical uses: a price, a quantity in stock, a rating from 1 to 5, the number of seats at an event.

A yes or no. Editors see a switch labelled Yes or No.

SettingWhat it does
On by defaultNew documents start with the switch on

Typical uses: “Show on the start page”, “Sold out”, “Hide from search engines”.

A date, or a date with a time. Editors see their browser’s date picker.

SettingWhat it does
PrecisionDate only or Date and time
Default to nowA new document starts with the current date (and time) filled in

Typical uses: the date of an event, the day a blog post was written, an application deadline.

A choice from a fixed list of options. With one choice, editors see a dropdown (the - entry means “nothing chosen”). With several choices allowed, they see the options as buttons and click each one they want.

SettingWhat it does
OptionsThe choices, one per line, in the order they are offered
Allow severalEditors may pick more than one option

Typical uses: a blog category, a colour, a clothing size, the layout variant of a block (“light” or “dark”).

One link, either to a document in the same space or to an address somewhere else. Editors first choose A document or An address. For a document they click Pick a document and search for it; for an address they type it, for example https://example.com/page. Below that they can choose Same tab or New tab and write an optional link text. Clear the link empties the field.

A link to a document keeps working when that document moves, because the website always gets the document’s current address.

SettingWhat it does
A document in this spaceEditors may link to a document
An address elsewhereEditors may type a web address
Can link toLimits document links to certain types, for example only Pages. Empty means any type
Let the editor choose the tabShows the Same tab / New tab choice
Opens inThe same tab or A new tab: the default, and the only choice when editors may not choose
Let the editor write the link textShows the link text box

An address typed without https:// gets it added. Addresses that would run code when clicked (such as javascript:) are refused when you save; mailto: and tel: links are fine.

Typical uses: a call-to-action button in a teaser, a “Read more” link, a link to a partner’s website.

An uploaded image or file from the space’s library. Editors click Choose asset and pick from the library. The library window can also upload a new file, which is then picked straight away. A chosen image shows as a thumbnail with a small x to remove it; Replace swaps it. If the space has AI set up, Generate an image or Generate a video can appear as well; see AI.

SettingWhat it does
Accepted file typesWhich kinds of file the picker offers, for example only images. Empty means everything the space accepts
Allow severalEditors may pick more than one file
Which filesWith several allowed: The ones an editor picks, or Whatever matches a filter (see Automatic lists)
Renditions delivered, Sizes of its ownOnly for image-only fields: which resized versions of the image the website receives. Leave them to your developer

Typical uses: the hero image of a page, a PDF download, a photo gallery (with Allow several). Uploading and managing files is explained in Images and files.

A pointer to one or more other documents in the space. Editors click Link content, type in the search box and click a document to add it. Each linked document shows as a row with a small x to remove it.

SettingWhat it does
Can link toLimits the choice to certain document types, for example only Team members
Allow severalEditors may link more than one document
Which documentsWith several allowed: The ones an editor picks, or Whatever matches a filter (see Automatic lists)

The website only sees linked documents that are published.

Typical uses: “Related articles” under a blog post, the author of a post (pointing at a Person document), the products shown in a campaign.

A pointer to a person who works in the space. Editors see a dropdown of the space’s members, with Nobody for an empty field.

Typical uses: the person responsible for a page, a contact person on a job offer.

Exactly one block of one block type, with that block’s fields shown right inside the document. An empty field shows a button Add followed by the block’s name, for example Add Hero; the trash button removes the block again.

SettingWhat it does
Block typeThe one block type this field holds

Typical uses: a fixed hero section at the top of every landing page, an optional newsletter box. Build the block type first; see Building content types.

A list of blocks that editors assemble freely: the page builder. Editors click Add block (or Add followed by the block’s name when only one type is allowed), fill in the block’s fields, and reorder blocks by dragging them or with the move up and move down buttons. Under Layout they can switch from a simple list to a grid with columns. The details are in Editing content.

SettingWhat it does
Allowed block typesWhich block types editors can add. Pick at least one, or editors see “No block types configured for this field.”
At least, At mostHow many blocks the list must and may hold

Typical uses: the sections of a landing page, the content of a blog post built from text, image and quote blocks.

A pointer to a template: a block list written once under Templates and used by many documents. Editors pick a template from a dropdown (or No template). Under the dropdown a link Edit opens the chosen template; it says “not published yet” when the template has never been published.

SettingWhat it does
Offer these templatesWhich templates editors can pick. Empty means every template in the space

The website receives the template’s blocks as if they were written in the document itself. A template that is not published delivers no blocks.

Typical uses: a standard footer section, a sign-up box that should look the same on every product page.

An Asset or Content reference field that allows several items can fill itself. Set Which files or Which documents to Whatever matches a filter, and the field no longer stores a hand-picked list. Instead the website gets whatever matches the filter at the moment it asks, so the list is never out of date. Editors see the current matches in the document, but cannot change them there: the filter belongs to the content type.

SettingWhat it does
Matching this textOnly items that contain this text. Empty means everything the other settings allow
Only below this documentContent reference only: only documents under this one in the tree
Ordered byContent reference only: their place in the tree, title, when they went live, when they were created, when they were last edited, or slug
DirectionFirst to last or Last to first
How manyHow many items, up to 100
Skipping the firstLeaves out the first items, for example to show “the next 10” in a second field

Example: a “Latest news” field on the home page, set to documents of type Blog post, ordered by when they went live, last to first, 3 items. The home page then always shows the three newest posts without anybody touching it.