diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/db.json | 26 | ||||
| -rw-r--r-- | examples/index.js | 3 |
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'} } }, |
