add faq page

This commit is contained in:
Schneider Roland
2025-01-31 21:42:52 +01:00
parent 93af3607e9
commit 3e3dbed6e6
28 changed files with 970 additions and 20 deletions

View File

@@ -0,0 +1,47 @@
{
"kind": "singleType",
"collectionName": "faq_pages",
"info": {
"singularName": "faq-page",
"pluralName": "faq-pages",
"displayName": "FAQPage",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"header": {
"type": "string"
},
"description": {
"type": "string"
},
"questionsAndAnswers": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-faq-component.yoga-faq-component"
},
"achievements": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-achivements-component.yoga-achivements-component"
},
"blogs": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-blog-posts-component.yoga-blog-posts-component"
},
"subscribe": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-subscribe-now-component.yoga-subscribe-now-component"
},
"footer": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* faq-page controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::faq-page.faq-page');

View File

@@ -0,0 +1,7 @@
/**
* faq-page router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::faq-page.faq-page');

View File

@@ -0,0 +1,7 @@
/**
* faq-page service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::faq-page.faq-page');

View File

@@ -0,0 +1,30 @@
{
"kind": "collectionType",
"collectionName": "yoga_faq_components",
"info": {
"singularName": "yoga-faq-component",
"pluralName": "yoga-faq-components",
"displayName": "YogaFAQComponent",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"header": {
"type": "string"
},
"description": {
"type": "text"
},
"questionsAndAnswers": {
"type": "relation",
"relation": "oneToMany",
"target": "api::yoga-faq-qa.yoga-faq-qa"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-faq-component controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-faq-component.yoga-faq-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-faq-component router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-faq-component.yoga-faq-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-faq-component service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-faq-component.yoga-faq-component');

View File

@@ -0,0 +1,24 @@
{
"kind": "collectionType",
"collectionName": "yoga_faq_qas",
"info": {
"singularName": "yoga-faq-qa",
"pluralName": "yoga-faq-qas",
"displayName": "YogaFAQQA"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"question": {
"type": "string"
},
"answer": {
"type": "text"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-faq-qa controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-faq-qa.yoga-faq-qa');

View File

@@ -0,0 +1,7 @@
/**
* yoga-faq-qa router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-faq-qa.yoga-faq-qa');

View File

@@ -0,0 +1,7 @@
/**
* yoga-faq-qa service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-faq-qa.yoga-faq-qa');