Files
VITEC-website/packages/vitec/ContentBlocks/ContentElements/intro-paragraph/config.yaml
2026-08-13 12:49:10 +02:00

150 lines
3.3 KiB
YAML
Executable File

name: vitec/intro-paragraph
group: vitec_custom_components
prefixFields: true
prefixType: vendor
fields:
- identifier: header_section
type: Palette
label: Header
fields:
- identifier: header
useExistingField: true
required: true
- type: Linebreak
- identifier: header_layout
useExistingField: true
- identifier: header_position
useExistingField: true
- identifier: date
useExistingField: true
- type: Linebreak
- identifier: header_link
useExistingField: true
- type: Linebreak
- identifier: subheader
useExistingField: true
- identifier: bodytext
useExistingField: true
enableRichtext: true
- identifier: button_text
type: Text
max: 40
- identifier: button_link
type: Link
allowedTypes:
- page
- url
- file
- email
- identifier: Vitec/ButtonStyle
type: Basic
# --- Image ---
- identifier: intro_image
type: File
minitems: 0
maxitems: 1
allowed: common-image-types
extendedPalette: true
- identifier: intro_image_alignment
type: Select
renderType: selectSingle
default: center
items:
- label: Left
value: left
- label: Center
value: center
- label: Right
value: right
- label: Fullwidth
value: fullwidth
# --- Video ---
- identifier: intro_video
type: File
minitems: 0
maxitems: 1
allowed: mp4,webm,ogv,mov,m4v
- identifier: intro_video_alignment
type: Select
renderType: selectSingle
default: center
items:
- label: Left
value: left
- label: Center
value: center
- label: Right
value: right
- label: Fullwidth
value: fullwidth
- identifier: intro_video_autoplay
type: Checkbox
default: 0
- identifier: intro_video_loop
type: Checkbox
default: 0
- identifier: intro_video_muted
type: Checkbox
default: 1
- identifier: intro_layout_variant
type: Select
renderType: selectSingle
default: variant_1
items:
- label: Variant 1
value: variant_1
- label: Variant 2
value: variant_2
- label: Variant 3
value: variant_3
- label: Variant 4
value: variant_4
- identifier: fullwidth
type: Checkbox
default: 0
# Background colour for the whole element. No default on purpose: empty means
# "no background", so every existing record keeps the look it has today.
# The presets are the VITEC palette from Resources/Public/SCSS/_vitec.scss,
# in the same order as the button styles above so both dropdowns read alike.
# Lower-case hex, because the native colour picker emits lower case -- an
# upper-case preset would store the same colour under two spellings.
- identifier: background_color
type: Color
valuePicker:
items:
- label: 'VITEC Orange'
value: '#f47937'
- label: 'VITEC Blue'
value: '#26358c'
- label: 'VITEC Graphite'
value: '#313131'
- label: 'VITEC Midnight'
value: '#0d0d0d'
- label: 'VITEC Light Grey'
value: '#cccccc'
- label: 'White'
value: '#ffffff'
- identifier: debug
type: Checkbox
default: 0