footer, feedback, subscribe
This commit is contained in:
@@ -60,6 +60,16 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-blog-posts-component.yoga-blog-posts-component"
|
||||
},
|
||||
"subscribeNow": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"info": {
|
||||
"singularName": "yoga-blog-posts-component",
|
||||
"pluralName": "yoga-blog-posts-components",
|
||||
"displayName": "YogaBlogPostsComponent"
|
||||
"displayName": "YogaBlogPostsComponent",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
@@ -27,6 +28,11 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::yoga-blog-post.yoga-blog-post"
|
||||
},
|
||||
"button": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.button"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_footers",
|
||||
"info": {
|
||||
"singularName": "yoga-footer",
|
||||
"pluralName": "yoga-footers",
|
||||
"displayName": "YogaFooter",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"aboutUsHeader": {
|
||||
"type": "string"
|
||||
},
|
||||
"aboutUsContent": {
|
||||
"type": "text"
|
||||
},
|
||||
"quickLinksHeader": {
|
||||
"type": "string"
|
||||
},
|
||||
"contactInfoHeader": {
|
||||
"type": "string"
|
||||
},
|
||||
"links": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "yoga-site.link"
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.link",
|
||||
"required": false
|
||||
},
|
||||
"contactUsEmail": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.link"
|
||||
},
|
||||
"contactUsLocation": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.link"
|
||||
},
|
||||
"copyRight": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/yoga-footer/controllers/yoga-footer.ts
Normal file
7
yoga-cms/src/api/yoga-footer/controllers/yoga-footer.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-footer controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-footer.yoga-footer');
|
||||
7
yoga-cms/src/api/yoga-footer/routes/yoga-footer.ts
Normal file
7
yoga-cms/src/api/yoga-footer/routes/yoga-footer.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-footer router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-footer.yoga-footer');
|
||||
7
yoga-cms/src/api/yoga-footer/services/yoga-footer.ts
Normal file
7
yoga-cms/src/api/yoga-footer/services/yoga-footer.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-footer service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-footer.yoga-footer');
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_subscribe_now_components",
|
||||
"info": {
|
||||
"singularName": "yoga-subscribe-now-component",
|
||||
"pluralName": "yoga-subscribe-now-components",
|
||||
"displayName": "YogaSubscribeNowComponent"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"placeHolderEmail": {
|
||||
"type": "string"
|
||||
},
|
||||
"buttonSubscribeLabel": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-subscribe-now-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-subscribe-now-component.yoga-subscribe-now-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-subscribe-now-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-subscribe-now-component.yoga-subscribe-now-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-subscribe-now-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-subscribe-now-component.yoga-subscribe-now-component');
|
||||
Reference in New Issue
Block a user