Added support for an Advertisement Banner on the homepage

made home publish/draft
This commit is contained in:
Joao Ramos
2024-04-08 18:48:35 +01:00
parent 5dbe466dff
commit 3d4005a62a
8 changed files with 429 additions and 59 deletions

View File

@@ -8,7 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": false
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
@@ -113,6 +113,21 @@
"localized": false
}
}
},
"AdvertisementBanner": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
}
}
}

View File

@@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-03-28T15:09:45.262Z"
"x-generation-date": "2024-04-08T17:39:54.183Z"
},
"x-strapi-config": {
"path": "/documentation",
@@ -3096,6 +3096,17 @@
],
"example": "string or id"
},
"AdvertisementBanner": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"example": "string or id"
},
"locale": {
"type": "string"
}
@@ -3148,6 +3159,17 @@
],
"example": "string or id"
},
"AdvertisementBanner": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"example": "string or id"
},
"locale": {
"type": "string"
}
@@ -3921,6 +3943,145 @@
}
}
},
"AdvertisementBanner": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"folder": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
}
}
},
"createdAt": {
"type": "string",
"format": "date-time"
@@ -3929,6 +4090,10 @@
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {