model changes

This commit is contained in:
Julian Krauser 2025-02-13 11:33:54 +01:00
parent 3ba5330e19
commit 1cfefa450b
15 changed files with 545 additions and 408 deletions

View file

@ -41,6 +41,11 @@
"type": "boolean",
"default": false,
"required": true
},
"enable_detail": {
"type": "boolean",
"default": false,
"required": true
}
}
}

View file

@ -23,12 +23,13 @@
"type": "component",
"repeatable": false,
"pluginOptions": {},
"component": "global.footer"
"component": "global.footer",
"required": true
},
"SEO": {
"type": "component",
"repeatable": false,
"component": "shared.seo"
"component": "global.seo"
}
}
}

View file

@ -15,23 +15,22 @@
"backdrop": {
"type": "media",
"multiple": false,
"required": true,
"required": false,
"allowedTypes": ["images"]
},
"hide_backdrop": {
"type": "boolean",
"default": false,
"required": true
},
"content": {
"type": "dynamiczone",
"components": [
"dynamic-zone.spacer",
"dynamic-zone.section",
"dynamic-zone.embedding",
"dynamic-zone.file-download",
"dynamic-zone.gallery",
"dynamic-zone.full-text",
"dynamic-zone.full-image",
"dynamic-zone.emphasise-article",
"dynamic-zone.dual-column-text",
"dynamic-zone.column-image-text",
"shared.emphasise-article",
"shared.list"
]
}

View file

@ -28,22 +28,24 @@
"type": "component",
"repeatable": false,
"pluginOptions": {},
"component": "shared.hero",
"component": "items.hero",
"required": false
},
"content": {
"pluginOptions": {},
"type": "dynamiczone",
"components": [
"dynamic-zone.spacer",
"dynamic-zone.section",
"dynamic-zone.embedding",
"dynamic-zone.file-download",
"dynamic-zone.gallery",
"dynamic-zone.full-text",
"dynamic-zone.full-image",
"dynamic-zone.emphasise-article",
"dynamic-zone.dual-column-text",
"dynamic-zone.column-image-text",
"shared.list",
"dynamic-zone.file-download",
"dynamic-zone.embedding"
"shared.emphasise-article",
"shared.list"
]
}
}

View file

@ -0,0 +1,18 @@
{
"collectionName": "components_dynamic_zone_section",
"info": {
"displayName": "Abschnitt",
"icon": "apps",
"description": ""
},
"options": {},
"attributes": {
"titel": {
"type": "string",
"required": true
},
"description": {
"type": "text"
}
}
}

View file

@ -0,0 +1,10 @@
{
"collectionName": "components_dynamic_zone_spacer",
"info": {
"displayName": "Abstand",
"icon": "apps",
"description": ""
},
"options": {},
"attributes": {}
}

View file

@ -16,7 +16,7 @@
"links": {
"type": "component",
"repeatable": true,
"component": "shared.link"
"component": "items.link"
}
}
}

View file

@ -1,5 +1,5 @@
{
"collectionName": "components_shared_seos",
"collectionName": "components_global_seos",
"info": {
"displayName": "seo",
"icon": "search",

View file

@ -1,5 +1,5 @@
{
"collectionName": "components_shared_heroes",
"collectionName": "components_items_heroes",
"info": {
"displayName": "hero",
"icon": "rocket",
@ -11,9 +11,7 @@
"type": "media",
"multiple": false,
"required": true,
"allowedTypes": [
"images"
]
"allowedTypes": ["images"]
},
"title": {
"type": "string",

View file

@ -1,5 +1,5 @@
{
"collectionName": "components_shared_links",
"collectionName": "components_items_links",
"info": {
"displayName": "Link",
"icon": "link",
@ -17,12 +17,7 @@
},
"target": {
"type": "enumeration",
"enum": [
"_blank",
"_self",
"_parent",
"_top"
],
"enum": ["_blank", "_self", "_parent", "_top"],
"default": "_self",
"required": true
}

View file

@ -1,5 +1,5 @@
{
"collectionName": "components_dynamic_zone_emphasise_articles",
"collectionName": "components_shared_emphasise_articles",
"info": {
"displayName": "Artikel hervorheben",
"icon": "dashboard",
@ -12,17 +12,10 @@
"relation": "oneToMany",
"target": "api::article.article"
},
"titel": {
"type": "string",
"required": true
},
"description": {
"type": "text"
},
"base_url": {
"type": "string",
"required": true,
"default": "/artikel"
"required": false,
"default": ""
}
}
}

View file

@ -7,11 +7,6 @@
},
"options": {},
"attributes": {
"enable_detail": {
"type": "boolean",
"default": false,
"required": true
},
"lookup": {
"type": "relation",
"relation": "oneToOne",