From ef6a07b17892af66ed63379bec552d03c2d568bd Mon Sep 17 00:00:00 2001 From: Ludovic Delhomme Date: Thu, 1 Feb 2024 17:09:26 +0100 Subject: [PATCH] add fields to resources --- .../content-types/resource/schema.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cms/src/api/resource/content-types/resource/schema.json b/cms/src/api/resource/content-types/resource/schema.json index 00676dd219..532c5064f3 100644 --- a/cms/src/api/resource/content-types/resource/schema.json +++ b/cms/src/api/resource/content-types/resource/schema.json @@ -39,6 +39,24 @@ "relation": "manyToMany", "target": "api::categorie.categorie", "mappedBy": "resources" + }, + "img": { + "allowedTypes": [ + "images" + ], + "type": "media", + "multiple": false, + "required": true + }, + "link": { + "type": "string" + }, + "file": { + "allowedTypes": [ + "files" + ], + "type": "media", + "multiple": false } } }