Added wiki stuff

This commit is contained in:
DrMint 2022-07-11 02:36:27 +02:00
parent 17e28d07b2
commit 6245b8ee91
8 changed files with 83 additions and 0 deletions

View File

@ -21,6 +21,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::content.content"
},
"ranged_content": {
"type": "relation",
"relation": "oneToOne",
"target": "api::ranged-content.ranged-content"
}
}
}

View File

@ -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"
}
}
}

View File

@ -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"
}
}
}

View File

@ -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"
}
}
}

View File

@ -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');

View File

@ -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');

View File

@ -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');

View File

@ -16,6 +16,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::source.source"
},
"categories": {
"type": "relation",
"relation": "oneToMany",
"target": "api::category.category"
}
}
}