Cotton code
135 lines · 2.6 KB · JSONRaw
{  "format_version": 1,  "id": "story_picture",  "name": "Picture",  "plural": "Pictures",  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "story",      "name": "Story",      "type": "link",      "link_to": "story_story",      "required": true    },    {      "key": "picture",      "name": "Picture",      "type": "photo",      "required": true    },    {      "key": "caption",      "name": "Caption",      "type": "text"    },    {      "key": "position",      "name": "Order",      "type": "number"    },    {      "key": "character",      "name": "Of",      "type": "link",      "link_to": "story_character"    },    {      "key": "place",      "name": "Of the place",      "type": "link",      "link_to": "story_place"    },    {      "key": "scene",      "name": "For the scene",      "type": "link",      "link_to": "story_scene"    },    {      "key": "costume",      "name": "Costume",      "type": "link",      "link_to": "story_costume"    },    {      "key": "thing",      "name": "Thing",      "type": "link",      "link_to": "story_thing"    },    {      "key": "day",      "name": "Story day",      "type": "number"    }  ],  "seal": {    "clear": [      "story",      "picture",      "position",      "character",      "place",      "scene",      "costume",      "thing",      "day"    ],    "blind": [      "caption"    ]  },  "title": "caption",  "date": null,  "project": null,  "order": "position",  "slip": {    "title": "caption",    "subtitle": null,    "trailing": null,    "photo": "picture",    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "picture",        "caption",        "character",        "place",        "scene",        "costume",        "thing",        "day"      ]    }  ],  "sort": {    "column": "position",    "descending": false  },  "empty": {    "title": "No pictures yet",    "message": "Pictures of places, people and scenes gather here."  },  "deletion": {    "bin": true  },  "links": [    {      "label": "Deleted",      "table": "bin",      "where": {        "table": "story_picture"      }    }  ],  "instructions": "A picture kept beside a story, of one thing: a place (place), a person (character), a person on one story day, as a costume (character and day, or costume), one scene (scene) or a thing (thing). position orders the pictures of the same thing and may be a fraction. Add one over MCP with story_picture_add."}