summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-08-23 16:06:50 +0200
committerJules Laplace <julescarbon@gmail.com>2017-08-23 16:06:50 +0200
commiteddee7c150388106979c16221b3ee106e53b1990 (patch)
treed63a4a5e676c39c222a9bd100b5fa803e60c3738 /index.js
parent2b1fe8184068141677c2141eaea1b3dde7447dbf (diff)
testimonials carousel
Diffstat (limited to 'index.js')
-rw-r--r--index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.js b/index.js
index 53e4c4b..13d3244 100644
--- a/index.js
+++ b/index.js
@@ -8,6 +8,7 @@ var viewConfig = {
data: [
{type: 'entry', query: '*'},
{type: 'page', query: '*'},
+ {type: 'testimonial', query: '*'},
]
}
@@ -45,11 +46,19 @@ var app = okcms.createApp({
body: {type: 'text'},
disabled: {type: 'flag'},
},
+ testimonial: {
+ id: {type: 'string', hidden: true},
+ title: {type: 'string'},
+ body: {type: 'text'},
+ byline: {type: 'string'},
+ disabled: {type: 'flag'},
+ },
},
resources: [
{ type: 'entry' },
{ type: 'page' },
+ { type: 'testimonial' },
],
views: {