add faq page
This commit is contained in:
47
yoga-cms/src/api/faq-page/content-types/faq-page/schema.json
Normal file
47
yoga-cms/src/api/faq-page/content-types/faq-page/schema.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/faq-page/controllers/faq-page.ts
Normal file
7
yoga-cms/src/api/faq-page/controllers/faq-page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* faq-page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::faq-page.faq-page');
|
||||
7
yoga-cms/src/api/faq-page/routes/faq-page.ts
Normal file
7
yoga-cms/src/api/faq-page/routes/faq-page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* faq-page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::faq-page.faq-page');
|
||||
7
yoga-cms/src/api/faq-page/services/faq-page.ts
Normal file
7
yoga-cms/src/api/faq-page/services/faq-page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* faq-page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::faq-page.faq-page');
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-faq-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-faq-component.yoga-faq-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-faq-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-faq-component.yoga-faq-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-faq-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-faq-component.yoga-faq-component');
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/yoga-faq-qa/controllers/yoga-faq-qa.ts
Normal file
7
yoga-cms/src/api/yoga-faq-qa/controllers/yoga-faq-qa.ts
Normal 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');
|
||||
7
yoga-cms/src/api/yoga-faq-qa/routes/yoga-faq-qa.ts
Normal file
7
yoga-cms/src/api/yoga-faq-qa/routes/yoga-faq-qa.ts
Normal 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');
|
||||
7
yoga-cms/src/api/yoga-faq-qa/services/yoga-faq-qa.ts
Normal file
7
yoga-cms/src/api/yoga-faq-qa/services/yoga-faq-qa.ts
Normal 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');
|
||||
Reference in New Issue
Block a user