askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
articles.json · 1.9 KB · 95 lines
| 1 | { |
| 2 | "name": "articles", |
| 3 | "title": "Articles", |
| 4 | "version": 4, |
| 5 | "description": "Long-form writing. Schema versions and record changelogs provide edit history. v3 adds blocks.feed (64 - Feed), opting articles into the follow-graph feed as its worked-example feed source; purely additive metadata, no field/behavior change.", |
| 6 | "fields": [ |
| 7 | { |
| 8 | "name": "id" |
| 9 | }, |
| 10 | { |
| 11 | "name": "title", |
| 12 | "type": "text", |
| 13 | "required": true, |
| 14 | "label": "Title", |
| 15 | "validation": { |
| 16 | "min_length": 1, |
| 17 | "max_length": 200 |
| 18 | } |
| 19 | }, |
| 20 | { |
| 21 | "name": "content", |
| 22 | "type": "textarea", |
| 23 | "required": true, |
| 24 | "label": "Content", |
| 25 | "validation": { |
| 26 | "min_length": 1 |
| 27 | } |
| 28 | }, |
| 29 | { |
| 30 | "name": "is_public", |
| 31 | "type": "boolean", |
| 32 | "label": "Published", |
| 33 | "default": "false", |
| 34 | "help": "Published articles are readable by anyone at their permalink" |
| 35 | }, |
| 36 | { |
| 37 | "name": "published_on", |
| 38 | "type": "date", |
| 39 | "label": "Published On" |
| 40 | }, |
| 41 | { |
| 42 | "name": "created_at", |
| 43 | "type": "datetime", |
| 44 | "label": "Created", |
| 45 | "read_only": true |
| 46 | }, |
| 47 | { |
| 48 | "name": "owner_id", |
| 49 | "type": "text", |
| 50 | "label": "Owner" |
| 51 | } |
| 52 | ], |
| 53 | "forms": { |
| 54 | "default": { |
| 55 | "fields": [ |
| 56 | "title", |
| 57 | "content", |
| 58 | "is_public", |
| 59 | "published_on" |
| 60 | ] |
| 61 | } |
| 62 | }, |
| 63 | "views": { |
| 64 | "list_mode": "table", |
| 65 | "list_fields": [ |
| 66 | "title", |
| 67 | "published_on", |
| 68 | "is_public" |
| 69 | ] |
| 70 | }, |
| 71 | "search": { |
| 72 | "fields": [ |
| 73 | "title", |
| 74 | "content" |
| 75 | ], |
| 76 | "result_fields": [ |
| 77 | "id", |
| 78 | "title", |
| 79 | "published_on", |
| 80 | "is_public" |
| 81 | ] |
| 82 | }, |
| 83 | "blocks": { |
| 84 | "feed": { |
| 85 | "owner_field": "owner_id", |
| 86 | "visibility_field": "is_public", |
| 87 | "visibility_true_value": "true", |
| 88 | "time_field": "published_on", |
| 89 | "summary_fields": [ |
| 90 | "title" |
| 91 | ], |
| 92 | "link_field": "id" |
| 93 | } |
| 94 | } |
| 95 | } |