- Home
- Articles
- Documentation
- Collections
- Fields: the information every item has
Fields: the information every item has
Fields are the heart of a collection. Each one becomes an input in the item form, a block on the item page and, if you want, a column in your list and a filter for visitors. Open a collection and choose the Fields tab.
Add a field
- Under Add a field , type its name, for example Size .
- Choose the kind of field.
- Press Add field .
The new field appears in the item form at once, and its block is placed on the item page for you: beside the title for short values, lower down for long text and pictures.
Kinds of field
- Short text : one line, such as a name or a model number.
- Long text : a few plain lines, such as a summary.
- Formatted text : text with bold, headings, lists and links.
- Number : any number, such as weight or rooms.
- Currency : an amount of money. You choose the currency on the field.
- Percentage : a number shown with a % sign.
- Date : a day, shown in the language of the page.
- Image : one picture from your media library.
- Image gallery : several pictures.
- Link : a web address, shown as a button.
- Choice (one) : one value from a list you write, such as a category.
- Choices (several) : several values from a list, such as colors.
- Yes / No : a switch, such as In stock .
Good to know: The kind of a field cannot be changed afterwards, because the values already typed would no longer fit. Add a new field of the right kind and remove the old one.
The switches of a field
- Must be filled : an item cannot be saved without it.
- Show in my list : a column in your table of items in the dashboard.
- Visitors can filter by it : a filter above the cards on your site.
- Visitors can sort by it : an entry in the sort menu on your site.
- Include in search : the value is found by the search box of the list and by the site search.
- Private (never published) : only you see it, in the dashboard. Use it for notes such as cost price or supplier.
A switch that makes no sense for a kind of field is greyed out: you cannot sort by a picture, for example.
Choices and their options
A Choice or Choices field has a list of options under it. Type an option and press Add option ; rename one by typing over it; remove one with the cross. If items already use an option, you are told how many before it is removed.
Currency and discount
- Each Currency field has its own Currency selector, so one site can show two currencies.
- To show sale prices, add a Percentage field (for example Discount ), then in the Currency field set Discount comes from to that field.
- An item with a discount then shows the reduced amount, the old amount crossed out and a badge such as -20% . Visitors get an On sale switch if you let them filter by the percentage field.
- A Percentage field that is not linked to an amount is just a number with a % sign.
Rename, reorder, remove
- Rename : type a new name over the old one. What you already typed in your items stays.
- Reorder : use the up and down arrows. The order is the order of the item form.
- Remove : press the bin. You are told how many items have a value in that field; those values are deleted, and the field's block leaves the item page.