MakingHistory/templates/events/template.hjson

94 lines
1.7 KiB
Plaintext

{
templateId: events
// This role makes the template eligible to be displayed as a UI choice for user inbox
templateRole: user-inbox
// The model sets which go builder to use with this template
model: inbox
label: Events
description: A simple inbox with a sidebar for folders and several feed layouts
icon: inbox
// Extends inherits from other templates
extends: ["user-inbox"]
// A schema sets up the data structure that will be used inside a template
// Reflected in mongodb
// Based on json, without linking between schemas; all rules must be defined herein
schema: {
title: Events
type: object
properties: {
feeds: {
description: Array of news sources to render on the page
type: array
items: {
type: object
properties: {
uri: {
type: string
}
name: {
type: string
}
trust-level: {
type: string
}
}
}
}
}
}
states: {
published: {
label: Publically viewable events item
}
for-review: {
label: Events item to be reviewed before publishing or not
}
}
roles: {
mod: {
label: Events Moderator
decription: Full control
}
reader: {
label: Events Reader
description: Read only
}
}
/*
bundles: {
stylesheet: {
content-type: text/css
}
hyperscript: {
content-type: text/hyperscript
}
}
*/
actions: {
view: {
roles: ["mod"]
stateRoles: {
published: ["reader"]
}
steps: [
{do: "view-html"}
]
}
inbox: {
roles: ["self"]
do: "view-html"
file: "events"
}
events: {
roles: ["self"]
do: "view-html"
}
/*
sidebar-events: {
roles: ["self"]
do: "view-html"
}
*/
}
}