Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 9b784a5

Browse files
committed
adding home page type
1 parent 9be7fab commit 9b784a5

File tree

5 files changed

+60
-1
lines changed

5 files changed

+60
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"kind": "singleType",
3+
"collectionName": "home_pages",
4+
"info": {
5+
"singularName": "home-page",
6+
"pluralName": "home-pages",
7+
"displayName": "Home Page",
8+
"description": ""
9+
},
10+
"options": {
11+
"draftAndPublish": true
12+
},
13+
"pluginOptions": {},
14+
"attributes": {
15+
"partners": {
16+
"type": "relation",
17+
"relation": "oneToMany",
18+
"target": "api::partner.partner"
19+
}
20+
}
21+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
/**
4+
* home-page controller
5+
*/
6+
7+
const { createCoreController } = require('@strapi/strapi').factories;
8+
9+
module.exports = createCoreController('api::home-page.home-page');
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
/**
4+
* home-page router.
5+
*/
6+
7+
const { createCoreRouter } = require('@strapi/strapi').factories;
8+
9+
module.exports = createCoreRouter('api::home-page.home-page');
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
/**
4+
* home-page service.
5+
*/
6+
7+
const { createCoreService } = require('@strapi/strapi').factories;
8+
9+
module.exports = createCoreService('api::home-page.home-page');

cms/src/api/partner/content-types/partner/schema.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,18 @@
2424
"type": "string",
2525
"required": true
2626
},
27-
"logo": {
27+
"logo_dark": {
28+
"type": "media",
29+
"multiple": false,
30+
"required": false,
31+
"allowedTypes": [
32+
"images",
33+
"files",
34+
"videos",
35+
"audios"
36+
]
37+
},
38+
"logo_light": {
2839
"allowedTypes": [
2940
"images",
3041
"files",

0 commit comments

Comments
 (0)