diff --git a/src/api/source/content-types/source/schema.json b/src/api/source/content-types/source/schema.json index eabb5a4..c5a96e8 100644 --- a/src/api/source/content-types/source/schema.json +++ b/src/api/source/content-types/source/schema.json @@ -21,6 +21,11 @@ "type": "relation", "relation": "oneToOne", "target": "api::content.content" + }, + "ranged_content": { + "type": "relation", + "relation": "oneToOne", + "target": "api::ranged-content.ranged-content" } } } diff --git a/src/api/website-interface/content-types/website-interface/schema.json b/src/api/website-interface/content-types/website-interface/schema.json index 05642a3..3a3591d 100644 --- a/src/api/website-interface/content-types/website-interface/schema.json +++ b/src/api/website-interface/content-types/website-interface/schema.json @@ -465,6 +465,21 @@ }, "display_all_items": { "type": "string" + }, + "table_of_contents": { + "type": "string" + }, + "definition": { + "type": "string" + }, + "no_results_message": { + "type": "string" + }, + "all": { + "type": "string" + }, + "special_pages": { + "type": "string" } } } diff --git a/src/api/wiki-page/content-types/wiki-page/schema.json b/src/api/wiki-page/content-types/wiki-page/schema.json index 7d22c3d..4455739 100644 --- a/src/api/wiki-page/content-types/wiki-page/schema.json +++ b/src/api/wiki-page/content-types/wiki-page/schema.json @@ -52,6 +52,11 @@ "type": "component", "repeatable": true, "component": "wiki-specialization.glossary-item" + }, + "tags": { + "type": "relation", + "relation": "oneToMany", + "target": "api::wiki-pages-tag.wiki-pages-tag" } } } diff --git a/src/api/wiki-pages-tag/content-types/wiki-pages-tag/schema.json b/src/api/wiki-pages-tag/content-types/wiki-pages-tag/schema.json new file mode 100644 index 0000000..ccc0828 --- /dev/null +++ b/src/api/wiki-pages-tag/content-types/wiki-pages-tag/schema.json @@ -0,0 +1,26 @@ +{ + "kind": "collectionType", + "collectionName": "wiki_pages_tags", + "info": { + "singularName": "wiki-pages-tag", + "pluralName": "wiki-pages-tags", + "displayName": "🟥 Wiki Pages Tags", + "description": "" + }, + "options": { + "draftAndPublish": false + }, + "attributes": { + "slug": { + "type": "string", + "regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$", + "required": true, + "unique": true + }, + "titles": { + "type": "component", + "repeatable": true, + "component": "translations.simple-title" + } + } +} diff --git a/src/api/wiki-pages-tag/controllers/wiki-pages-tag.js b/src/api/wiki-pages-tag/controllers/wiki-pages-tag.js new file mode 100644 index 0000000..8101056 --- /dev/null +++ b/src/api/wiki-pages-tag/controllers/wiki-pages-tag.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * wiki-pages-tag controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::wiki-pages-tag.wiki-pages-tag'); diff --git a/src/api/wiki-pages-tag/routes/wiki-pages-tag.js b/src/api/wiki-pages-tag/routes/wiki-pages-tag.js new file mode 100644 index 0000000..3847a7d --- /dev/null +++ b/src/api/wiki-pages-tag/routes/wiki-pages-tag.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * wiki-pages-tag router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::wiki-pages-tag.wiki-pages-tag'); diff --git a/src/api/wiki-pages-tag/services/wiki-pages-tag.js b/src/api/wiki-pages-tag/services/wiki-pages-tag.js new file mode 100644 index 0000000..916b8ce --- /dev/null +++ b/src/api/wiki-pages-tag/services/wiki-pages-tag.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * wiki-pages-tag service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::wiki-pages-tag.wiki-pages-tag'); diff --git a/src/components/wiki-specialization/glossary-item.json b/src/components/wiki-specialization/glossary-item.json index f9a4d5f..e768cee 100644 --- a/src/components/wiki-specialization/glossary-item.json +++ b/src/components/wiki-specialization/glossary-item.json @@ -16,6 +16,11 @@ "type": "relation", "relation": "oneToOne", "target": "api::source.source" + }, + "categories": { + "type": "relation", + "relation": "oneToMany", + "target": "api::category.category" } } }