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
doc_pages.json · 1.7 KB · 69 lines
| 1 | { |
| 2 | "name": "doc_pages", |
| 3 | "title": "Doc Pages", |
| 4 | "version": 1, |
| 5 | "description": "One guide per record for the public /docs documentation site. nav_order is a text field holding a numeric string -- the same convention site_routes uses for priority -- so ordering stays a plain sortable string rather than a second numeric type. Seeded content: visitors only ever read these through /docs and /docs/{slug}.", |
| 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": "category", |
| 22 | "type": "text", |
| 23 | "label": "Category", |
| 24 | "help": "Groups this page under a heading in the sidebar" |
| 25 | }, |
| 26 | { |
| 27 | "name": "nav_order", |
| 28 | "type": "text", |
| 29 | "label": "Nav Order", |
| 30 | "default": "100", |
| 31 | "help": "Numeric string; pages sort ascending by this value within their category and across the prev/next sequence" |
| 32 | }, |
| 33 | { |
| 34 | "name": "summary", |
| 35 | "type": "text", |
| 36 | "label": "Summary", |
| 37 | "help": "One line shown in search results and previews" |
| 38 | }, |
| 39 | { |
| 40 | "name": "content", |
| 41 | "type": "textarea", |
| 42 | "required": true, |
| 43 | "label": "Content", |
| 44 | "validation": { |
| 45 | "min_length": 1 |
| 46 | }, |
| 47 | "help": "Markdown, rendered through the shared /markdown renderer" |
| 48 | } |
| 49 | ], |
| 50 | "forms": { |
| 51 | "default": { |
| 52 | "fields": [ |
| 53 | "title", |
| 54 | "category", |
| 55 | "nav_order", |
| 56 | "summary", |
| 57 | "content" |
| 58 | ] |
| 59 | } |
| 60 | }, |
| 61 | "views": { |
| 62 | "list_mode": "table", |
| 63 | "list_fields": [ |
| 64 | "title", |
| 65 | "category", |
| 66 | "nav_order" |
| 67 | ] |
| 68 | } |
| 69 | } |