diff --git a/cms/src/api/page/content-types/page/schema.json b/cms/src/api/page/content-types/page/schema.json index 83094a398c..a344a3b422 100644 --- a/cms/src/api/page/content-types/page/schema.json +++ b/cms/src/api/page/content-types/page/schema.json @@ -57,11 +57,14 @@ "page.list-title" ] }, - "resource": { + "resources": { "type": "relation", - "relation": "manyToOne", + "relation": "manyToMany", "target": "api::resource.resource", "inversedBy": "pages" + }, + "complement": { + "type": "richtext" } } } diff --git a/cms/src/api/resource/content-types/resource/schema.json b/cms/src/api/resource/content-types/resource/schema.json index 532c5064f3..b1071b617c 100644 --- a/cms/src/api/resource/content-types/resource/schema.json +++ b/cms/src/api/resource/content-types/resource/schema.json @@ -24,12 +24,6 @@ "type": "date", "required": true }, - "pages": { - "type": "relation", - "relation": "oneToMany", - "target": "api::page.page", - "mappedBy": "resource" - }, "slug": { "type": "uid", "targetField": "title" @@ -57,6 +51,12 @@ ], "type": "media", "multiple": false + }, + "pages": { + "type": "relation", + "relation": "manyToMany", + "target": "api::page.page", + "mappedBy": "resources" } } } diff --git a/cms/src/components/shared/button.json b/cms/src/components/shared/button.json index 77c19b1101..1579852133 100644 --- a/cms/src/components/shared/button.json +++ b/cms/src/components/shared/button.json @@ -20,10 +20,11 @@ "color": { "type": "enumeration", "enum": [ - "bleu", - "blanc" + "primary", + "secondary" ], - "required": true + "required": true, + "default": "primary" } } }