summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSean Fridman <fridman@mail.sfsu.edu>2015-04-09 01:58:01 -0400
committerSean Fridman <fridman@mail.sfsu.edu>2015-04-09 01:58:01 -0400
commitc5e38d7f48e2b5d6ce5ea70f7337f983e55969d6 (patch)
tree4615fb1e73776647b08838d7b5b41cd445a57b1e /examples
parent0f7c28fa2e1fec6b3ce006435cd4bd6c7725d4af (diff)
Add captioned-image-list type
Diffstat (limited to 'examples')
-rw-r--r--examples/db.json26
-rw-r--r--examples/index.js3
2 files changed, 25 insertions, 4 deletions
diff --git a/examples/db.json b/examples/db.json
index b2cdf4a..ab4f7e1 100644
--- a/examples/db.json
+++ b/examples/db.json
@@ -6,18 +6,38 @@
"description": "really a very tasty bread! yup yes",
"color": "blue",
"id": "pretzel",
- "title": ""
+ "title": "",
+ "images": [
+ {
+ "uri": "cool",
+ "caption": "cool"
+ }
+ ]
},
{
"type": "bagel",
"description": "very good and dense bread",
- "id": "bagel"
+ "id": "bagel",
+ "title": "nice",
+ "color": "blue",
+ "images": [
+ {
+ "uri": "http://del.h-cdn.co/assets/cm/15/10/54f928d7ada8d_-_1347910942518.jpg",
+ "caption": "beep"
+ }
+ ]
},
{
"type": "pumpernickel",
"description": "grandma's recipe",
"id": "pumpernickel",
- "title": "Pumpernickel"
+ "title": "Pumpernickel",
+ "images": [
+ {
+ "uri": "cool",
+ "caption": "cool"
+ }
+ ]
}
],
"page": [
diff --git a/examples/index.js b/examples/index.js
index 3dd3a39..9c5b7b4 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -14,7 +14,8 @@ var app = okcms.createApp({
type: {type: 'string', id: true},
title: {type: 'string'},
description: {type: 'text'},
- color: {type: 'enum', options: ["red","blue","green"]}
+ color: {type: 'enum', options: ["red","blue","green"]},
+ images: {type: 'captioned-image-list'}
}
},