From d8727678455f56d3a68e2b56ece43bb62601f709 Mon Sep 17 00:00:00 2001 From: Mario Linz Date: Fri, 3 Jun 2022 14:43:59 +0200 Subject: [PATCH] Update der starter collections. --- api/collections/articles.yml | 4 ++ api/collections/fields/_article.yml | 65 ++++++++++++----------------- api/collections/fields/_locale.yml | 6 +-- 3 files changed, 34 insertions(+), 41 deletions(-) diff --git a/api/collections/articles.yml b/api/collections/articles.yml index 269c8e5..87b6fb7 100644 --- a/api/collections/articles.yml +++ b/api/collections/articles.yml @@ -19,6 +19,8 @@ meta: mediaQuery: "(max-width:599px)" primaryText: path columns: + - source: article.general.locale + type: flag - article.general.public - article.content.title - article.general.position @@ -27,6 +29,8 @@ meta: - type: table mediaQuery: "(min-width:600px)" columns: + - source: article.general.locale + type: flag - article.general.public - label: { de: "Titel", en: "Title" } source: article.content.title diff --git a/api/collections/fields/_article.yml b/api/collections/fields/_article.yml index 8a0d681..29d8fd8 100644 --- a/api/collections/fields/_article.yml +++ b/api/collections/fields/_article.yml @@ -5,7 +5,7 @@ meta: label: de: Einstellungen zum Artikel en: Article Setings - activeTab: 1 + activeTab: 0 subFields: - name: general type: object @@ -13,7 +13,6 @@ subFields: label: de: Allgemein en: General - css: subFields: - name: public type: boolean @@ -25,6 +24,7 @@ subFields: helperText: de: "Der Artikel wird auf der Seite angezeigt." en: "This article is displayed on the page." + - !include _locale.yml - name: publish_date type: object meta: @@ -51,17 +51,6 @@ subFields: label: de: Datum (bis) en: Date (until) - - name: position - type: string - meta: - widget: select - label: - de: Position auf der Seite - en: Position on page - defaultValue: [] - choices: - - { id: "content", name: { de: "Inhaltsbereich", en: "Content Area" } } - - { id: "sidebar", name: { de: "Sidebar", en: "Sidebar" } } - name: tags type: string[] meta: @@ -70,7 +59,7 @@ subFields: en: "Articles can be categorized by assigning keywords." widget: chipArray label: - de: Verknüpfungs-Stichworte + de: Schlagworte / Tags / Labels en: Linking Tags defaultValue: [] choices: @@ -248,10 +237,10 @@ subFields: meta: widget: select label: - de: Oben - en: Top + de: Abstand nach Oben + en: Margin Top choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "mt-xs", name: "Sehr kleiner Abstand" } - { id: "mt-sm", name: "Kleiner Abstand" } - { id: "mt-md", name: "Normal" } @@ -262,10 +251,10 @@ subFields: meta: widget: select label: - de: Rechts - en: Right + de: Abstand nach Rechts + en: Margin Right choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "mr-xs", name: "Sehr kleiner Abstand" } - { id: "mr-sm", name: "Kleiner Abstand" } - { id: "mr-md", name: "Normal" } @@ -276,10 +265,10 @@ subFields: meta: widget: select label: - de: Unten - en: Bottom + de: Abstand nach Unten + en: Margin Bottom choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "mb-xs", name: "Sehr kleiner Abstand" } - { id: "mb-sm", name: "Kleiner Abstand" } - { id: "mb-md", name: "Normal" } @@ -290,10 +279,10 @@ subFields: meta: widget: select label: - de: Links - en: Left + de: Abstand nach Links + en: Margin Left choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "ml-xs", name: "Sehr kleiner Abstand" } - { id: "ml-sm", name: "Kleiner Abstand" } - { id: "ml-md", name: "Normal" } @@ -309,10 +298,10 @@ subFields: meta: widget: select label: - de: Oben - en: Top + de: Innenabstand nach Oben + en: Padding Top choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "pt-xs", name: "Sehr kleiner Abstand" } - { id: "pt-sm", name: "Kleiner Abstand" } - { id: "pt-md", name: "Normal" } @@ -323,10 +312,10 @@ subFields: meta: widget: select label: - de: Rechts - en: Right + de: Innenabstand nach Rechts + en: Padding Right choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "pr-xs", name: "Sehr kleiner Abstand" } - { id: "pr-sm", name: "Kleiner Abstand" } - { id: "pr-md", name: "Normal" } @@ -337,10 +326,10 @@ subFields: meta: widget: select label: - de: Unten - en: Bottom + de: Innenabstand nach Unten + en: Padding Bottom choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "pb-xs", name: "Sehr kleiner Abstand" } - { id: "pb-sm", name: "Kleiner Abstand" } - { id: "pb-md", name: "Normal" } @@ -351,10 +340,10 @@ subFields: meta: widget: select label: - de: Links - en: Left + de: Innenabstand nach Links + en: Padding Left choices: - - { id: "", name: "Kein Abstand" } + - { id: "", name: "-" } - { id: "pl-xs", name: "Sehr kleiner Abstand" } - { id: "pl-sm", name: "Kleiner Abstand" } - { id: "pl-md", name: "Normal" } diff --git a/api/collections/fields/_locale.yml b/api/collections/fields/_locale.yml index 5b29f42..73f888d 100644 --- a/api/collections/fields/_locale.yml +++ b/api/collections/fields/_locale.yml @@ -5,11 +5,11 @@ meta: label: { de: "Sprache", en: "Language" } helperText: { - de: "Definiert, in welcher Sprache das Menü verfügbar ist. Die Standard-Sprache ist 'de-DE'.", - en: "Defines in which language the menu is available. The default language is 'de-DE'.", + de: "Definiert, in welcher Sprache das Menü verfügbar ist. Die Standard-Sprache ist 'de'.", + en: "Defines in which language the menu is available. The default language is 'de'.", } filter: true - defaultValue: "de" + defaultValue: de choices: - { id: af, name: { key: "labels.locales.af" } } - { id: af-ZA, name: { key: "labels.locales.af-ZA" } }