blog component
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-our-services-component.yoga-our-services-component"
|
||||
},
|
||||
"blogs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-blog-posts-component.yoga-blog-posts-component"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_blog_posts",
|
||||
"info": {
|
||||
"singularName": "yoga-blog-post",
|
||||
"pluralName": "yoga-blog-posts",
|
||||
"displayName": "YogaBlogPost",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"teaserImage": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"article": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"tags": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::yoga-tag.yoga-tag"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-blog-post controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-blog-post.yoga-blog-post');
|
||||
7
yoga-cms/src/api/yoga-blog-post/routes/yoga-blog-post.ts
Normal file
7
yoga-cms/src/api/yoga-blog-post/routes/yoga-blog-post.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-blog-post router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-blog-post.yoga-blog-post');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-blog-post service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-blog-post.yoga-blog-post');
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_blog_posts_components",
|
||||
"info": {
|
||||
"singularName": "yoga-blog-posts-component",
|
||||
"pluralName": "yoga-blog-posts-components",
|
||||
"displayName": "YogaBlogPostsComponent"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"posts": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::yoga-blog-post.yoga-blog-post"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-blog-posts-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-blog-posts-component.yoga-blog-posts-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-blog-posts-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-blog-posts-component.yoga-blog-posts-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-blog-posts-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-blog-posts-component.yoga-blog-posts-component');
|
||||
18
yoga-cms/src/api/yoga-tag/content-types/yoga-tag/schema.json
Normal file
18
yoga-cms/src/api/yoga-tag/content-types/yoga-tag/schema.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_tags",
|
||||
"info": {
|
||||
"singularName": "yoga-tag",
|
||||
"pluralName": "yoga-tags",
|
||||
"displayName": "YogaTag"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"tag": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/yoga-tag/controllers/yoga-tag.ts
Normal file
7
yoga-cms/src/api/yoga-tag/controllers/yoga-tag.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-tag controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-tag.yoga-tag');
|
||||
7
yoga-cms/src/api/yoga-tag/routes/yoga-tag.ts
Normal file
7
yoga-cms/src/api/yoga-tag/routes/yoga-tag.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-tag router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-tag.yoga-tag');
|
||||
7
yoga-cms/src/api/yoga-tag/services/yoga-tag.ts
Normal file
7
yoga-cms/src/api/yoga-tag/services/yoga-tag.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-tag service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-tag.yoga-tag');
|
||||
Reference in New Issue
Block a user