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

Field multirelation

Version: Pro.

Why this type

Row order preserved for curated lists. Same modal search as relation. Base for curated_products and similar sections.

When to use

  • Product picks by exact SKU list
  • Related articles or case studies
  • Multiple internal links with titles

Tips

Single resource fits relation. Static ids without picker possible via combo but no pagetitle enrich.

Similar types

Schema

json
{
  "name": "products",
  "type": "multirelation",
  "label": "Products",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Array of resources.

Section data

Key products in the section data: array of resources:

json
{
  "products": [
    {
      "id": 10,
      "pagetitle": "Product A"
    },
    {
      "id": 11,
      "pagetitle": "Product B"
    }
  ]
}

Chunk example

fenom
{foreach $products as $p}
  <span class="related">{$p.pagetitle|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