131 lines
4.1 KiB
YAML
131 lines
4.1 KiB
YAML
name: pageBuilder
|
|
type: object[]
|
|
meta:
|
|
label:
|
|
de: Pagebuilder Light
|
|
en: pagebuilder light
|
|
folding:
|
|
unfolded: false
|
|
previewFolded:
|
|
raw: false
|
|
eval: |
|
|
(() => {
|
|
let text = $this?.columns?.column1?.html?.replace(/<\/?[^>]+(>|$)/g, " ");
|
|
if (text?.length > 30) {
|
|
return text.substr(0, 30) + "...";
|
|
}
|
|
return text?.trimStart() || "";
|
|
})()
|
|
previewUnfolded:
|
|
raw: false
|
|
eval: |
|
|
(() => {
|
|
return "";
|
|
})()
|
|
subFields:
|
|
- name: publish
|
|
type: boolean
|
|
meta:
|
|
label:
|
|
de: Inhaltszeile ist veröffentlicht
|
|
en: Content row is published
|
|
|
|
- name: columns
|
|
type: object
|
|
meta:
|
|
widget: tabs
|
|
label:
|
|
de: Spalten
|
|
en: Columns
|
|
helperText:
|
|
de: Spalten ohne Inhalt werden nicht angezeigt.
|
|
en: Columns with no content are not displayed.
|
|
subFields:
|
|
- name: column1
|
|
type: object
|
|
meta:
|
|
label:
|
|
de: Spalte 1
|
|
en: Column 1
|
|
subFields: &columnSubFields
|
|
- name: width
|
|
type: string
|
|
meta:
|
|
widget: select
|
|
label:
|
|
de: Spaltenbreite
|
|
en: Column width
|
|
defaultValue: "auto"
|
|
choices: &widthSelections
|
|
- id: "auto"
|
|
name:
|
|
de: automatisch
|
|
en: auto
|
|
- id: "25"
|
|
name:
|
|
de: 25%
|
|
en: 25%
|
|
- id: "33"
|
|
name:
|
|
de: 33%
|
|
en: 33%
|
|
- id: "50"
|
|
name:
|
|
de: 50%
|
|
en: 50%
|
|
- id: "66"
|
|
name:
|
|
de: 66%
|
|
en: 66%
|
|
- id: "75"
|
|
name:
|
|
de: 75%
|
|
en: 75%
|
|
- name: html
|
|
type: string
|
|
meta:
|
|
widget: richtext
|
|
label:
|
|
de: Text
|
|
en: Text
|
|
- name: module
|
|
type: string
|
|
meta:
|
|
label:
|
|
de: Modul
|
|
en: Module
|
|
helperText:
|
|
de: Ein Modul ist ein vorgefertigter Baustein und wird an der Position des Textelements eingebettet.
|
|
en: A module is a ready-made building block and is embedded at the position of the text element.
|
|
widget: select
|
|
allowEmpty: true
|
|
choices:
|
|
- id: ContactForm
|
|
name: { de: "Kontakt Formular", en: "Contact Form" }
|
|
- id: Addresses
|
|
name: { de: "Adressen", en: "Adresses" }
|
|
|
|
- name: column2
|
|
type: object
|
|
meta:
|
|
label:
|
|
de: Spalte 2
|
|
en: Column 2
|
|
subFields: *columnSubFields
|
|
|
|
- name: column3
|
|
type: object
|
|
meta:
|
|
label:
|
|
de: Spalte 3
|
|
en: Column 3
|
|
subFields: *columnSubFields
|
|
|
|
- name: column4
|
|
type: object
|
|
meta:
|
|
label:
|
|
de: Spalte 4
|
|
en: Column 4
|
|
subFields: *columnSubFields
|