From d4b894a602a480aa6f6ffaa85359a82b9fd6e90e Mon Sep 17 00:00:00 2001 From: suroh Date: Thu, 16 Nov 2023 16:05:27 +0100 Subject: [PATCH] made featImg and image gallery not required in admin --- office/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/office/config.yml b/office/config.yml index 9ef2328..31ebaf7 100644 --- a/office/config.yml +++ b/office/config.yml @@ -21,8 +21,8 @@ collections: - {label: "Title", name: "title", widget: "string"} - {label: "Publish Date", name: "date", widget: "datetime"} - {label: "Published", name: "published", widget: "boolean"} - - {label: "Featured Image", name: "imgFeat", widget: "image"} - - {label: "Gallery", name: "gallery", widget: "image", media_library: { config: { multiple: true } } } + - {label: "Featured Image", name: "imgFeat", widget: "image", required: false} + - {label: "Gallery", name: "gallery", widget: "image", media_library: { config: { multiple: true } }, required: false } - {label: "Body", name: "body", widget: "markdown"} - {label: "Order", name: "sort", widget: "number"} - label: "Dev" @@ -33,8 +33,8 @@ collections: - {label: "Title", name: "title", widget: "string"} - {label: "Publish Date", name: "date", widget: "datetime"} - {label: "Published", name: "published", widget: "boolean"} - - {label: "Featured Image", name: "imgFeat", widget: "image"} - - {label: "Gallery", name: "gallery", widget: "image", media_library: { config: { multiple: true } } } + - {label: "Featured Image", name: "imgFeat", widget: "image", required: false} + - {label: "Gallery", name: "gallery", widget: "image", media_library: { config: { multiple: true } }, required: false } - {label: "Body", name: "body", widget: "markdown"} - {label: "Order", name: "sort", widget: "number"} - label: "Work" @@ -45,7 +45,7 @@ collections: - {label: "Title", name: "title", widget: "string"} - {label: "Publish Date", name: "date", widget: "datetime"} - {label: "Published", name: "published", widget: "boolean"} - - {label: "Featured Image", name: "imgFeat", widget: "image"} - - {label: "Gallery", name: "gallery", widget: "image", media_library: { config: { multiple: true } } } + - {label: "Featured Image", name: "imgFeat", widget: "image", required: false} + - {label: "Gallery", name: "gallery", widget: "image", media_library: { config: { multiple: true } }, required: false } - {label: "Body", name: "body", widget: "markdown"} - {label: "Order", name: "sort", widget: "number"}