From c5e38d7f48e2b5d6ce5ea70f7337f983e55969d6 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Thu, 9 Apr 2015 01:58:01 -0400 Subject: Add captioned-image-list type --- examples/db.json | 26 +++++++++++++++++++++++--- examples/index.js | 3 ++- 2 files changed, 25 insertions(+), 4 deletions(-) (limited to 'examples') 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'} } }, -- cgit v1.2.3-70-g09d2