Commit 993b64bd by Harish Patel

added content types for storing project information

1 parent 1cd21b98
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"info": { "info": {
"singularName": "home-banner", "singularName": "home-banner",
"pluralName": "home-banners", "pluralName": "home-banners",
"displayName": "Home Banner" "displayName": "Home Banner",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": false "draftAndPublish": false
...@@ -19,11 +20,17 @@ ...@@ -19,11 +20,17 @@
"type": "string" "type": "string"
}, },
"image": { "image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images" "images"
], ]
"type": "media", },
"multiple": false "serialNumber": {
"type": "integer",
"default": 1,
"required": true
} }
} }
} }
...@@ -41,13 +41,13 @@ ...@@ -41,13 +41,13 @@
] ]
}, },
"title1": { "title1": {
"type": "text" "type": "richtext"
}, },
"title2": { "title2": {
"type": "text" "type": "richtext"
}, },
"title3": { "title3": {
"type": "text" "type": "richtext"
} }
} }
} }
...@@ -12,14 +12,6 @@ ...@@ -12,14 +12,6 @@
}, },
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
"images": {
"type": "media",
"multiple": true,
"required": false,
"allowedTypes": [
"images"
]
},
"projectName": { "projectName": {
"type": "string", "type": "string",
"required": true "required": true
...@@ -55,12 +47,6 @@ ...@@ -55,12 +47,6 @@
"type": "integer", "type": "integer",
"required": true "required": true
}, },
"heroText1": {
"type": "text"
},
"heroText2": {
"type": "text"
},
"description": { "description": {
"type": "richtext", "type": "richtext",
"required": true "required": true
...@@ -73,30 +59,6 @@ ...@@ -73,30 +59,6 @@
"videos" "videos"
] ]
}, },
"floorPlans": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"unitPlans": {
"type": "media",
"multiple": true,
"required": false,
"allowedTypes": [
"images"
]
},
"masterLayoutPlans": {
"type": "media",
"multiple": true,
"required": false,
"allowedTypes": [
"images"
]
},
"details": { "details": {
"type": "richtext", "type": "richtext",
"required": true "required": true
...@@ -105,6 +67,18 @@ ...@@ -105,6 +67,18 @@
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"required": true "required": true
},
"heroText1": {
"type": "richtext"
},
"heroText2": {
"type": "richtext"
},
"projectImages": {
"displayName": "Project Image",
"type": "component",
"repeatable": true,
"component": "layout.project-image"
} }
} }
} }
{
"collectionName": "components_layout_project_images",
"info": {
"displayName": "Project Image",
"icon": "images"
},
"options": {},
"attributes": {
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
},
"featuredOnHome": {
"type": "boolean",
"default": false,
"required": true
},
"caption": {
"type": "string",
"required": true
}
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!