add concatct page

This commit is contained in:
Schneider Roland
2025-02-04 22:13:50 +01:00
parent 71f697c88f
commit 4d239f7c7a
12 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{
"kind": "singleType",
"collectionName": "contact_pages",
"info": {
"singularName": "contact-page",
"pluralName": "contact-pages",
"displayName": "ContactPage",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"header": {
"type": "string"
},
"description": {
"type": "text"
},
"contactUs": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-contact-us.yoga-contact-us"
},
"google_maps": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-google-maps-component.yoga-google-maps-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 @@
/**
* contact-page controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::contact-page.contact-page');

View File

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

View File

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