diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 3709ff3..989421f 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/api/collections/content.yml b/api/collections/content.yml index 3c04ea8..4be2b11 100644 --- a/api/collections/content.yml +++ b/api/collections/content.yml @@ -120,5 +120,6 @@ fields: type: object[] meta: label: { de: "Artikel dieser Seite", en: "Page Articles" } + collapse: { titleFieldName: "article.content.title" } subFields: - !include fields/_article.yml diff --git a/api/collections/fields/_article.yml b/api/collections/fields/_article.yml index 983f1b9..8e30da9 100644 --- a/api/collections/fields/_article.yml +++ b/api/collections/fields/_article.yml @@ -135,21 +135,11 @@ subFields: meta: widget: richtext label: { de: "Teaser-Text des Artikel", en: "Article Teaser Text" } - - name: teaserContent - type: string - meta: - widget: uiContentBuilder - label: { de: "Teaser-Inhalt", en: "Article Teaser Content" } - name: details type: string meta: widget: richtext label: { de: "Detail-Text des Artikel", en: "Article Detail Text" } - - name: detailsContent - type: string - meta: - widget: uiContentBuilder - label: { de: "Details-Inhalt", en: "Article Details Content" } - name: contentMedia type: object meta: diff --git a/api/collections/general.yml b/api/collections/general.yml index 374ad1a..26c5659 100644 --- a/api/collections/general.yml +++ b/api/collections/general.yml @@ -39,7 +39,7 @@ meta: label: { de: "Allgemein", en: "General" } subFields: - source: public - - source: meta.metaDescription + # - source: meta.metaDescription - name: meta meta: label: { de: "Meta", en: "Meta" } diff --git a/src/components/widgets/GeneralMediaImage.svelte b/src/components/widgets/GeneralMediaImage.svelte index 1516caa..4e6e956 100644 --- a/src/components/widgets/GeneralMediaImage.svelte +++ b/src/components/widgets/GeneralMediaImage.svelte @@ -1,5 +1,6 @@ -{#if file} - {alt ? alt + ' - ' : ''}{file.path} +{#if collectionName && entryId && file} + {#if file.src.includes(";base64,")} + {alt ? alt + ' - ' : ''}{file.path} + {:else} + {alt ? alt : file.path} + {/if} {/if} diff --git a/src/components/widgets/Navigation.svelte b/src/components/widgets/Navigation.svelte index be7f6eb..c6aa2b0 100644 --- a/src/components/widgets/Navigation.svelte +++ b/src/components/widgets/Navigation.svelte @@ -53,8 +53,6 @@