Redirekt auf HOME, wenn keine Contentseite gefunden wurde.
This commit is contained in:
parent
cabaaef456
commit
432d21daeb
@ -111,13 +111,13 @@ fields:
|
|||||||
type: string[]
|
type: string[]
|
||||||
meta:
|
meta:
|
||||||
helperText:
|
helperText:
|
||||||
de: "Entsprechende Seiten in einer anderen Sprache, die mit den selben zugewiesenen Stichworten gekennzeichnet sind, können bei Umschaltung der Seitensprache gefunden werden."
|
de: "Seiten können miteinander verknüpft werden. Entsprechende Seiten in einer anderen Sprache, die mit den selben zugewiesenen Schlagworten gekennzeichnet sind, können bei Umschaltung der Seitensprache gefunden werden. Wählen Sie einen existierenden Eintrag aus der Liste oder geben Sie ein neues Schlagwort ein und bestätigen mit Enter."
|
||||||
en: "Corresponding pages in another language, marked with the same assigned keywords, can be found when switching the page language."
|
en: "Pages can be linked together. Corresponding pages in another language, marked with the same assigned keywords, can be found by switching the page language. Select an existing entry from the list or enter a new keyword and confirm with Enter."
|
||||||
widget: chipArray
|
widget: chipArray
|
||||||
label:
|
label:
|
||||||
de: Verknüpfungs-Stichworte
|
de: Schlagwort / Tag / Label
|
||||||
en: Linking Tags
|
en: Kayword / Tag / Label
|
||||||
defaultValue: []
|
addAllowed: true
|
||||||
choices:
|
choices:
|
||||||
endpoint: "tags"
|
endpoint: "tags"
|
||||||
mapping:
|
mapping:
|
||||||
|
@ -62,19 +62,24 @@ subFields:
|
|||||||
choices:
|
choices:
|
||||||
- { id: "content", name: { de: "Inhaltsbereich", en: "Content Area" } }
|
- { id: "content", name: { de: "Inhaltsbereich", en: "Content Area" } }
|
||||||
- { id: "sidebar", name: { de: "Sidebar", en: "Sidebar" } }
|
- { id: "sidebar", name: { de: "Sidebar", en: "Sidebar" } }
|
||||||
- name: categories
|
- name: tags
|
||||||
type: string[]
|
type: string[]
|
||||||
meta:
|
meta:
|
||||||
|
helperText:
|
||||||
|
de: "Über die Zuweisung von Schlagworten, können Artikel kategorisiert werden."
|
||||||
|
en: "Articles can be categorized by assigning keywords."
|
||||||
widget: chipArray
|
widget: chipArray
|
||||||
label:
|
label:
|
||||||
de: Position auf der Seite
|
de: Verknüpfungs-Stichworte
|
||||||
en: Position on page
|
en: Linking Tags
|
||||||
defaultValue: ["c1"]
|
defaultValue: []
|
||||||
autocomplete: true
|
|
||||||
choices:
|
choices:
|
||||||
- { id: "c1", name: { de: "Category 1", en: "" } }
|
endpoint: "tags"
|
||||||
- { id: "c2", name: { de: "Category Number 2", en: "" } }
|
mapping:
|
||||||
- { id: "c3", name: { de: "Best Category 3", en: "" } }
|
id: "id"
|
||||||
|
name: "name"
|
||||||
|
params:
|
||||||
|
sort: "name"
|
||||||
- name: sort
|
- name: sort
|
||||||
type: number
|
type: number
|
||||||
meta:
|
meta:
|
||||||
@ -105,22 +110,6 @@ subFields:
|
|||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
label: { de: "Untertitel", en: "Subtitle" }
|
label: { de: "Untertitel", en: "Subtitle" }
|
||||||
- name: panel1
|
|
||||||
type: object
|
|
||||||
meta:
|
|
||||||
widget: panel
|
|
||||||
label: { de: "Test Panel", en: "Test Panel" }
|
|
||||||
subFields:
|
|
||||||
- name: radioGroup1
|
|
||||||
type: string[]
|
|
||||||
meta:
|
|
||||||
widget: radioGroup
|
|
||||||
label: { de: "Radio Button Group", en: "Radio Button Group" }
|
|
||||||
defaultValue: ["r2"]
|
|
||||||
choices:
|
|
||||||
- { id: "r1", name: { de: "Radio 1", en: "" } }
|
|
||||||
- { id: "r2", name: { de: "Noch ein Radio 2", en: "" } }
|
|
||||||
- { id: "r3", name: { de: "R 3", en: "" } }
|
|
||||||
- name: types
|
- name: types
|
||||||
type: object
|
type: object
|
||||||
meta:
|
meta:
|
||||||
@ -202,11 +191,7 @@ subFields:
|
|||||||
- name: layout
|
- name: layout
|
||||||
type: object
|
type: object
|
||||||
meta:
|
meta:
|
||||||
widget: tabs
|
label: { de: Layout, en: Layout }
|
||||||
label:
|
|
||||||
de: Layout
|
|
||||||
en: Layout
|
|
||||||
css:
|
|
||||||
subFields:
|
subFields:
|
||||||
- name: variant
|
- name: variant
|
||||||
type: string
|
type: string
|
||||||
@ -248,6 +233,11 @@ subFields:
|
|||||||
id: "bottom-right",
|
id: "bottom-right",
|
||||||
name: { de: "Artikelbild unten rechts", en: "Article picture below right" },
|
name: { de: "Artikelbild unten rechts", en: "Article picture below right" },
|
||||||
}
|
}
|
||||||
|
- name: properties
|
||||||
|
type: object
|
||||||
|
meta:
|
||||||
|
widget: tabs
|
||||||
|
subFields:
|
||||||
- name: margin
|
- name: margin
|
||||||
type: object
|
type: object
|
||||||
meta:
|
meta:
|
||||||
|
@ -2,7 +2,7 @@ name: locale
|
|||||||
type: string
|
type: string
|
||||||
meta:
|
meta:
|
||||||
widget: select
|
widget: select
|
||||||
label: { de: "Gebietsschema", en: "Locale" }
|
label: { de: "Sprache", en: "Language" }
|
||||||
helperText:
|
helperText:
|
||||||
{
|
{
|
||||||
de: "Definiert, in welcher Sprache das Menü verfügbar ist. Die Standard-Sprache ist 'de-DE'.",
|
de: "Definiert, in welcher Sprache das Menü verfügbar ist. Die Standard-Sprache ist 'de-DE'.",
|
||||||
|
@ -54,6 +54,11 @@
|
|||||||
}
|
}
|
||||||
content = null
|
content = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Redirect to HOME if no content has been found. So the page 404 content will never shown.
|
||||||
|
if (!content) {
|
||||||
|
navigate("/")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
loading = false
|
loading = false
|
||||||
@ -79,6 +84,7 @@
|
|||||||
{#if loading}
|
{#if loading}
|
||||||
<!-- Loader -->
|
<!-- Loader -->
|
||||||
{:else if content}
|
{:else if content}
|
||||||
|
<!-- {JSON.stringify(content)} -->
|
||||||
{#each content.blocks || [] as b}
|
{#each content.blocks || [] as b}
|
||||||
<h1>{b.article.content.title}</h1>
|
<h1>{b.article.content.title}</h1>
|
||||||
{JSON.stringify(b)}
|
{JSON.stringify(b)}
|
||||||
|
Loading…
Reference in New Issue
Block a user