diff --git a/api/collections/articles.yml b/api/collections/articles.yml index bed29df..d1c0d50 100644 --- a/api/collections/articles.yml +++ b/api/collections/articles.yml @@ -21,6 +21,7 @@ meta: columns: - article.general.public - article.content.title + - article.general.type - article.general.sort - source: article.general.locale type: flag @@ -32,6 +33,7 @@ meta: - label: { de: "Titel", en: "Title" } source: article.content.title filter: true + - article.general.type - article.general.sort - source: article.general.locale type: flag diff --git a/api/collections/fields/article/_article.yml b/api/collections/fields/article/_article.yml index 1277e5c..8943471 100644 --- a/api/collections/fields/article/_article.yml +++ b/api/collections/fields/article/_article.yml @@ -24,6 +24,21 @@ subFields: helperText: de: "Der Artikel wird auf der Seite angezeigt." en: "This article is displayed on the page." + - name: type + type: string + meta: + filter: true + helperText: + de: "Definiert allgemeinen Typ des Artikels." + en: "Defines general type of the article." + widget: select + label: + de: Typ des Artikels + en: Article type + defaultValue: default + choices: + - { id: "default", name: { de: "Artikel", en: "Article" } } + - { id: "news", name: { de: "News", en: "News" } } - !include ../_locale.yml - name: tags type: string[] @@ -158,10 +173,13 @@ subFields: - name: variant type: string meta: + helperText: + de: "Definiert das visuelle Erscheinungsbild der aller Teaser-Informationen des Artikels." + en: "Defines the visual appearance of all teaser information of the article." widget: select label: - de: Erscheinungsbild - en: Appearance + de: Teaser Erscheinungsbild + en: Teaser Layout defaultValue: default choices: - { id: "top", name: { de: "Artikelbild oben", en: "Article picture top" } } diff --git a/src/components/routes/ArticleDetails.svelte b/src/components/routes/ArticleDetails.svelte index 1428de5..898946c 100644 --- a/src/components/routes/ArticleDetails.svelte +++ b/src/components/routes/ArticleDetails.svelte @@ -1,34 +1,9 @@ -