diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-03-28 19:10:26 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-03-28 19:11:20 -0400 |
| commit | d8e9b4d5334db049feec81b0083c3adcedaf7e12 (patch) | |
| tree | 844a9fa3fe6cfd08ad4a4085c50dd9e139648b85 /examples | |
| parent | 49fe25c8e884c14ab3258d22240a62f0b57da490 (diff) | |
allow generic urls in media fieldv0.1.21
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/db.json | 15 | ||||
| -rw-r--r-- | examples/index.js | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/examples/db.json b/examples/db.json index 9ab7233..b9de44b 100644 --- a/examples/db.json +++ b/examples/db.json @@ -124,5 +124,20 @@ ], "dateCreated": "" } + ], + "test": [ + { + "id": "test", + "title": "tEst", + "media": [ + { + "uri": "http://asdf.us/", + "caption": "ASDF", + "type": "link" + } + ], + "__index": "0", + "dateCreated": "Mon, 28 Mar 2016 23:02:45 GMT" + } ] }
\ No newline at end of file diff --git a/examples/index.js b/examples/index.js index bf51dfc..4bf385f 100644 --- a/examples/index.js +++ b/examples/index.js @@ -21,12 +21,18 @@ var app = okcms.createApp({ video: {type: 'video'}, images: {type: 'captioned-image-list'} }, + test: { + id: {type: 'string', hidden: true}, + title: {type: 'string'}, + media: {type: 'media-list'}, + } }, resources: [ { type: 'page', static: {id: 'about'}}, { type: 'page', static: {id: 'contact'}}, { type: 'bread' }, + { type: 'test' }, ], services: { |
