summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/index.js b/examples/index.js
index 711246a..f1fabfa 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -10,6 +10,17 @@ var app = okcms.createApp({
debug: !isProduction,
production: isProduction,
+ admin: {
+ dashboard: {
+ resources: {
+ card: {
+ groupBy: 'stack',
+ descending: true
+ }
+ }
+ },
+ },
+
schemas: {
page: {
id: {type: 'string'},
@@ -35,6 +46,15 @@ var app = okcms.createApp({
id: {type: 'string', hidden: true},
title: {type: 'string'},
image: {type: 'image'},
+ },
+ card: {
+ id: {type: 'string', hidden: true},
+ title: {type: 'string'},
+ stack: {type: 'foreign-key', key: 'stack'},
+ },
+ stack: {
+ id: {type: 'string', hidden: true},
+ title: {type: 'string'},
}
},
@@ -44,6 +64,8 @@ var app = okcms.createApp({
{ type: 'bread' },
{ type: 'test' },
{ type: 'flour' },
+ { type: 'card' },
+ { type: 'stack' },
],
services: {