summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/db.json9
-rw-r--r--examples/index.js5
2 files changed, 11 insertions, 3 deletions
diff --git a/examples/db.json b/examples/db.json
index 20d4510..4319237 100644
--- a/examples/db.json
+++ b/examples/db.json
@@ -99,7 +99,14 @@
"title": "About Us",
"body": "Just a small bakery",
"id": "about",
- "__index": 1
+ "__index": "1",
+ "links": [
+ {
+ "text": "asdf2",
+ "uri": "asdf"
+ }
+ ],
+ "dateCreated": ""
},
{
"title": "ok...",
diff --git a/examples/index.js b/examples/index.js
index 3e9f509..bf51dfc 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -10,7 +10,8 @@ var app = okcms.createApp({
page: {
id: {type: 'string'},
title: {type: 'string'},
- body: {type: 'text'}
+ body: {type: 'text'},
+ links: {type: 'link-list'},
},
bread: {
type: {type: 'string', id: true},
@@ -19,7 +20,7 @@ var app = okcms.createApp({
color: {type: 'enum', options: ["red","blue","green"]},
video: {type: 'video'},
images: {type: 'captioned-image-list'}
- }
+ },
},
resources: [