summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstone <jules+okfprojz@okfoc.us>2015-11-19 21:07:55 -0500
committerstone <jules+okfprojz@okfoc.us>2015-11-19 21:07:55 -0500
commit40855344cb9d09f386c46e775107b669a9868057 (patch)
tree88c4c5006280753ae4de3dae9834f704574992de
parent7f65ee019a6f4dbab968b706d8c93f31d7fc364c (diff)
the store can be closed
-rw-r--r--db.json19
-rw-r--r--index.js7
2 files changed, 26 insertions, 0 deletions
diff --git a/db.json b/db.json
index 766c4065..80b2b573 100644
--- a/db.json
+++ b/db.json
@@ -203,5 +203,24 @@
"dateCreated": "Tue, 17 Nov 2015 21:03:57 GMT",
"tag": "care"
}
+ ],
+ "store": [
+ {
+ "id": "stone-island",
+ "title": "Stone Island",
+ "StoreIsOpen": "true",
+ "ClosedStoreImages": [
+ {
+ "uri": "https://ltho.s3.amazonaws.com/f4c50852-0305-4e69-b125-5c71876cbbb4.png",
+ "caption": ""
+ },
+ {
+ "uri": "https://ltho.s3.amazonaws.com/22c5df60-ad7c-4c8a-8e3e-d52247e22f01.jpg",
+ "caption": ""
+ }
+ ],
+ "__index": "0",
+ "dateCreated": "Fri, 20 Nov 2015 00:45:03 GMT"
+ }
]
} \ No newline at end of file
diff --git a/index.js b/index.js
index e38a38c8..462f2d3d 100644
--- a/index.js
+++ b/index.js
@@ -37,6 +37,12 @@ var app = okcms.createApp({
body: {type: 'text'},
tag: {type: 'string'},
},
+ store: {
+ id: {type: 'string', hidden: true},
+ title: {type: 'string'},
+ StoreIsOpen: {type: 'enum', options: ["true","false"] },
+ ClosedStoreImages: {type: 'captioned-image-list'},
+ },
},
resources: [
@@ -44,6 +50,7 @@ var app = okcms.createApp({
{ type: 'archive' },
{ type: 'hub' },
{ type: 'page' },
+ { type: 'store' },
],
views: {