diff options
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/index.js b/examples/index.js index 57bd600..a2a1a18 100644 --- a/examples/index.js +++ b/examples/index.js @@ -29,6 +29,9 @@ var app = okcms bread: { title: "type", }, + artwork: { + groupBy: "artist", + }, }, }, }, @@ -77,6 +80,15 @@ var app = okcms title: { type: "string" }, file: { type: "file" }, }, + artist: { + id: { type: "string", hidden: true }, + title: { type: "string", alias: "Artist Name" }, + }, + artwork: { + id: { type: "string", hidden: true }, + title: { type: "string" }, + artist: { type: "foreign-key", key: "artist" }, + }, }, resources: [ @@ -86,6 +98,8 @@ var app = okcms { type: "test" }, { type: "flour" }, { type: "filez" }, + { type: "artist" }, + { type: "artwork" }, ], services: { |
