allow hide of landing backdrop

This commit is contained in:
Julian Krauser 2025-01-17 11:23:31 +01:00
parent f2abe65749
commit a39370e369
3 changed files with 21 additions and 6 deletions

View file

@ -16,9 +16,12 @@
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"required": true, "required": true,
"allowedTypes": [ "allowedTypes": ["images"]
"images" },
] "hide_backdrop": {
"type": "boolean",
"default": false,
"required": true
}, },
"content": { "content": {
"type": "dynamiczone", "type": "dynamiczone",

View file

@ -14,7 +14,7 @@
"name": "Apache 2.0", "name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html" "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
}, },
"x-generation-date": "2025-01-16T12:40:38.072Z" "x-generation-date": "2025-01-17T10:22:28.611Z"
}, },
"x-strapi-config": { "x-strapi-config": {
"plugins": [ "plugins": [
@ -9383,7 +9383,8 @@
"properties": { "properties": {
"data": { "data": {
"required": [ "required": [
"backdrop" "backdrop",
"hide_backdrop"
], ],
"type": "object", "type": "object",
"properties": { "properties": {
@ -9398,6 +9399,9 @@
], ],
"example": "string or id" "example": "string or id"
}, },
"hide_backdrop": {
"type": "boolean"
},
"content": { "content": {
"type": "array", "type": "array",
"items": { "items": {
@ -9497,7 +9501,8 @@
"Homepage": { "Homepage": {
"type": "object", "type": "object",
"required": [ "required": [
"backdrop" "backdrop",
"hide_backdrop"
], ],
"properties": { "properties": {
"id": { "id": {
@ -10104,6 +10109,9 @@
} }
} }
}, },
"hide_backdrop": {
"type": "boolean"
},
"content": { "content": {
"type": "array", "type": "array",
"items": { "items": {
@ -10321,6 +10329,9 @@
} }
} }
}, },
"hide_backdrop": {
"type": "boolean"
},
"content": { "content": {
"type": "array", "type": "array",
"items": { "items": {

View file

@ -467,6 +467,7 @@ export interface ApiHomepageHomepage extends Struct.SingleTypeSchema {
>; >;
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
hide_backdrop: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo<false>;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<"oneToMany", "api::homepage.homepage"> & Schema.Attribute.Private; localizations: Schema.Attribute.Relation<"oneToMany", "api::homepage.homepage"> & Schema.Attribute.Private;
publishedAt: Schema.Attribute.DateTime; publishedAt: Schema.Attribute.DateTime;