diff --git a/src/api/collection/content-types/collection/schema.json b/src/api/collection/content-types/collection/schema.json index effb53b..af9ac69 100644 --- a/src/api/collection/content-types/collection/schema.json +++ b/src/api/collection/content-types/collection/schema.json @@ -37,6 +37,12 @@ "relation": "manyToMany", "target": "api::product.product", "inversedBy": "collections" + }, + "seoInformation": { + "type": "component", + "repeatable": false, + "component": "seo.seo", + "required": false } } } diff --git a/src/api/product/content-types/product/schema.json b/src/api/product/content-types/product/schema.json index c4eda72..7f75739 100644 --- a/src/api/product/content-types/product/schema.json +++ b/src/api/product/content-types/product/schema.json @@ -74,6 +74,13 @@ "relation": "manyToMany", "target": "api::collection.collection", "mappedBy": "products" + }, + "seoInformation": { + "displayName": "SEO", + "type": "component", + "repeatable": false, + "component": "seo.seo", + "required": false } } } diff --git a/src/components/seo/seo.json b/src/components/seo/seo.json new file mode 100644 index 0000000..d28ec5d --- /dev/null +++ b/src/components/seo/seo.json @@ -0,0 +1,38 @@ +{ + "collectionName": "components_seo_seos", + "info": { + "displayName": "SEO", + "icon": "link", + "description": "" + }, + "options": {}, + "attributes": { + "title": { + "type": "string", + "required": true + }, + "type": { + "type": "enumeration", + "enum": [ + "product", + "product.group", + "article", + "website" + ], + "required": true + }, + "description": { + "type": "text", + "maxLength": 200, + "required": true + }, + "image": { + "allowedTypes": [ + "images" + ], + "type": "media", + "multiple": true, + "required": true + } + } +}