Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Free
  5. resourcelist

Field resourcelist

Version: Free.

Why this type

"Pick a page" semantics in CMP labels. Same behavior and data as relation. SearchAction and modal search built in.

When to use

  • page or blog_parent field in section
  • When type name should read as page list to editors
  • Legacy schemas with type resourcelist

Tips

Functionally same as relation. Page array is multirelation.

Similar types

Schema

json
{
  "name": "page",
  "type": "resourcelist",
  "label": "Page",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Same as relation.

Section data

Key page in the section data (picker stores only the selection):

json
{
  "page": {
    "id": 42,
    "pagetitle": "About us"
  }
}
  • Manager search may show uri and context_key, but data stores id and pagetitle.

Chunk example

fenom
{if $page.id}
  <span>{$page.pagetitle|escape}</span>
{/if}

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