diff --git a/api/collections/content.yml b/api/collections/content.yml index e04c20d..539354c 100644 --- a/api/collections/content.yml +++ b/api/collections/content.yml @@ -3,7 +3,7 @@ uploadPath: ../media/page meta: label: Inhalt - muiIcon: web + muiIcon: tableOfContents backup: active: true collectionName: backups @@ -18,7 +18,8 @@ meta: - source: active name: Aktiv tablist: - activeTab: site + activeTab: general + tabs: - name: general label: Allgemein @@ -26,7 +27,6 @@ meta: - source: path - source: pageTitle - source: type - - source: active - name: teaser @@ -41,7 +41,7 @@ meta: - source: personPreview - name: jobOffer - label: Job Angebote + label: Job Angebot subFields: - source: jobOffer @@ -59,6 +59,10 @@ meta: defaultSort: field: "pfad" order: "ASC" + setDefault: + field: type + value: page + views: - type: table columns: @@ -76,7 +80,10 @@ meta: label: de: Teammitglieder en: Team members - muiIcon: book-open-page-variant + muiIcon: accountGroup + setDefault: + field: type + value: teamMembers defaultSort: field: "pfad" order: "ASC" @@ -96,7 +103,10 @@ meta: label: de: Stellenanzeigen en: Job offers - muiIcon: book-open-page-variant + muiIcon: briefcase + setDefault: + field: type + value: jobOffers defaultSort: field: "pfad" order: "ASC" @@ -181,6 +191,8 @@ fields: name: active meta: label: Aktiv + helperText: Ist dies Aktiviert, so wird die Seite verfügbar. + defaultValue: true containerProps: layout: size: @@ -191,8 +203,9 @@ fields: - type: string name: type meta: - label: Typ + label: Inhaltstyp widget: select + defaultValue: page containerProps: layout: size: @@ -226,9 +239,14 @@ fields: meta: label: Typ widget: select + defaultValue: chef + dependsOn: + eval: $.type == "teamMembers" + choices: - name: Chef id: chef + - name: Mitarbeiter id: employee @@ -236,6 +254,8 @@ fields: type: object meta: label: Personenvorschau + dependsOn: + eval: $.type == "teamMembers" subFields: - name: initialImage type: string @@ -291,7 +311,9 @@ fields: - name: jobOffer type: object meta: - label: Job Angebote + label: Job Angebot + dependsOn: + eval: $.type == "jobOffers" subFields: - name: title type: string @@ -312,7 +334,7 @@ fields: - name: emailSubject type: string meta: - label: E-Mail default Betreff + label: E-Mail Betreff dependsOn: eval: $parent.emailButton == true @@ -321,6 +343,8 @@ fields: meta: label: Zeilen widget: grid + dependsOn: + eval: $.type != "jobOffers" && ($.type != "teamMembers" || $.personType == "chef") metaElements: - source: backgroundImage - source: noBottomMargin @@ -328,7 +352,5 @@ fields: - source: flexWrapNormal - source: twoToThree - source: nextPage - folding: - force: true subFields: !include fieldLists/row.yml diff --git a/api/collections/fieldLists/column.yml b/api/collections/fieldLists/column.yml index 3355f5a..77764be 100644 --- a/api/collections/fieldLists/column.yml +++ b/api/collections/fieldLists/column.yml @@ -22,9 +22,6 @@ - name: Top-Down id: topDown - - name: Ausfahrbare Box - id: extendableBoxes - - name: Text mit Link id: textLink @@ -142,10 +139,23 @@ type: string meta: label: oberer text + containerProps: + layout: + size: + default: "col-6" + small: "col-12" + large: "col-6" + - name: smallText type: string meta: label: unterer Text + containerProps: + layout: + size: + default: "col-6" + small: "col-12" + large: "col-6" - name: image type: string diff --git a/api/collections/fields/teaserHomepage.yml b/api/collections/fields/teaserHomepage.yml index c2ba49c..b4c0633 100644 --- a/api/collections/fields/teaserHomepage.yml +++ b/api/collections/fields/teaserHomepage.yml @@ -2,6 +2,8 @@ name: teaser type: object meta: label: Teaser + dependsOn: + eval: $.type == "page" metaElements: - showTeaser subFields: @@ -14,8 +16,8 @@ subFields: - name: subTitle type: string meta: - label: Untertitel - helperText: "Dieser Untertitel wird in der Startseite angezeigt." + label: Übertitel + helperText: "Dieser Übertitel wird in der Startseite über dem Titel angezeigt." - name: teaserTitle type: string @@ -28,4 +30,4 @@ subFields: meta: widget: richtext label: Beschreibung - helperText: "Diese Beschreibung wird in der Startseite angezeigt." + helperText: "Diese Beschreibung wird in der Startseite unter dem Titel angezeigt." diff --git a/api/config.yml b/api/config.yml index 61dea35..27b0e15 100644 --- a/api/config.yml +++ b/api/config.yml @@ -22,7 +22,25 @@ meta: upper: rgba(3, 50, 59, 0.7) lower: rgba(3, 50, 59) - minorItems: [] + - collection: module + type: reference + style: + upper: rgba(3, 50, 59, 0.7) + lower: rgba(3, 50, 59) + + - collection: medialib + type: reference + style: + upper: rgba(3, 50, 59, 0.7) + lower: rgba(3, 50, 59) + + minorItems: + - collection: page + subNavigation: 0 + - collection: page + subNavigation: 1 + - collection: page + subNavigation: 2 collections: - !include collections/navigation.yml