Cotton code
171 lines · 3.0 KB · JSONRaw
{  "format_version": 1,  "id": "yoga_event",  "name": "Event",  "plural": "Events",  "picture": null,  "builtin": false,  "engine": null,  "visibility": "public",  "columns": [    {      "key": "name",      "name": "Event",      "type": "text",      "required": true    },    {      "key": "photo",      "name": "Photo",      "type": "photo"    },    {      "key": "kind",      "name": "Kind",      "type": "choice",      "format": "words",      "choices": [        "workshop",        "event",        "retreat",        "intensive",        "teacher_training",        "course"      ],      "labels": {        "workshop": "Workshop",        "event": "Event",        "retreat": "Retreat",        "intensive": "Intensive",        "teacher_training": "Teacher training",        "course": "Course"      }    },    {      "key": "starts_on",      "name": "From",      "type": "date"    },    {      "key": "ends_on",      "name": "Until",      "type": "date"    },    {      "key": "starts",      "name": "Starts",      "type": "time"    },    {      "key": "place",      "name": "Where",      "type": "text"    },    {      "key": "price",      "name": "Price",      "type": "amount",      "currency": "currency"    },    {      "key": "currency",      "name": "Currency",      "type": "text"    },    {      "key": "description",      "name": "About",      "type": "longtext"    }  ],  "title": "name",  "date": "starts_on",  "project": null,  "order": null,  "slip": {    "title": "name",    "photo": "photo",    "toggle": null,    "subtitle": [      "kind",      "starts_on"    ],    "trailing": "price"  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "photo",        "kind"      ]    },    {      "heading": "When",      "columns": [        "starts_on",        "ends_on",        "starts",        "place"      ]    },    {      "heading": "About",      "columns": [        "description",        "price",        "currency"      ]    }  ],  "sort": {    "column": "starts_on",    "descending": true,    "tie": "name"  },  "empty": {    "title": "No events",    "message": "Workshops, retreats, intensives and teacher trainings."  },  "card": {    "face": "event",    "fields": [      {        "slot": "photo",        "column": "photo"      },      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "kind"      },      {        "slot": "date",        "column": "starts_on",        "form": "weekday_date",        "also": [          "starts"        ]      },      {        "slot": "place",        "column": "place"      },      {        "slot": "body",        "column": "description"      }    ],    "pages": [      "description"    ]  },  "instructions": "One row per workshop, event, retreat, intensive, teacher training or course the studio runs, public. A course with no fixed dates keeps none."}