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

Field tv

Version: Pro.

Why this type

Picker for template variable hybrid chunk. Front output [[*{$tv.name}]]. Pro bridge between PB section and resource TV.

When to use

  • Section reads resource TV chosen by editor
  • Shared hero image TV across templates
  • Dev tooling which TV to expose

Tips

TV value is not duplicated in the section data. Inline upload in section is image or file.

Similar types

Schema

json
{
  "name": "tv",
  "type": "tv",
  "label": "TV",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Object { id, name, caption }.

Section data

Key tv in the section data:

json
{
  "tv": {
    "id": 7,
    "name": "hero_image",
    "caption": "Hero image"
  }
}

Chunk example

html
[[*{$tv.name}]]

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