Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Pro
  5. multicombo

Field multicombo

Version: Pro.

Why this type

Multiple ids from one xPDO class. Same optionsSource contract as combo. Scalar ids, not pagetitle objects like relation.

When to use

  • Several template or category ids
  • Multiple foreign keys in a custom section
  • Tags from a DISTINCT SQL query

Tips

Resource objects with titles → multirelation. Fixed list → multiselect.

Similar types

Schema

json
{
  "name": "ids",
  "type": "multicombo",
  "label": "ID",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Array of values.

Section data

Key ids in the section data: array of values:

json
{
  "ids": [
    "admin",
    "editor"
  ]
}

Chunk example

fenom
{foreach $ids as $id}
  <span>{$id|escape}</span>
{/foreach}

Common properties

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25–100Field width as % of the row (flex)yes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

See fields overview.

See also