Fieldset

Fieldset

{{ fieldset }}

A group of fields which together define a custom object. May either define a single object or a list of objects.

Properties of {{ fieldset }} objects
Name Type Description
is_valid Boolean True if there is at least one custom object
value String The same as what you would see when inspecting this object. For fieldset fields you do not typically care about this - use objects or fields instead
allow_multiple Boolean True if the fieldset allows multiple objects to be entered. Changes the way some of the other fieldset properties work
objects list A list of custom data objects defined by this fieldset. Only if allow_multiple is true
fields list A single custom data object defined by this fieldset. Only if allow_multiple is false
field_id String The identifier for this field
label String The label for this field
output String Same as value. May include additional markup in the editor preview to make it easier to edit content

Field containing either a single custom object or multiple custom objects - depending on whether allow_multiple is true. You may also treat this object as a list containing all of the child objects (if allow_multiple is true) or fields (if allow_multiple is false) which may be iterated using a {% for %} loop. For more details see the examples below: If allow_multiple is false, individual fields may be accessed using the {{ object.keyName }}, {{ object["keyName"] }}, {{ object.fields.keyName }}, or object.fields["keyName"] syntax. You may also treat this object as a list containing all of the fields which may be iterated using a {% for %} loop. For more details, see the examples below:

Related

object

May be any object, including simple, complex and list objects. In some cases may even include symbols and null.

{{ data }}

Object containing information about custom fields or other extended data outside of the core properties of an object.

list

An enumerable list containing zero or more objects. Lists may contain many different object types, although most lists only contain a single object type. There are a large number of other complex object types that are also lists (ag: an articlelist is a complex object but is also a list of article objects).

boolean

True or False