Cotton code
105 lines · 1.8 KB · JSONRaw
{  "format_version": 1,  "id": "kitchen_place",  "name": "Place",  "plural": "The place",  "builtin": false,  "visibility": "public",  "columns": [    {      "key": "name",      "name": "Name",      "type": "text",      "required": true    },    {      "key": "address",      "name": "Address",      "type": "longtext"    },    {      "key": "directions",      "name": "Directions",      "type": "longtext"    },    {      "key": "about",      "name": "About",      "type": "longtext"    },    {      "key": "delivery_area",      "name": "Delivers to",      "type": "longtext"    },    {      "key": "photo",      "name": "Photo",      "type": "photo"    }  ],  "title": "name",  "slip": {    "title": "name",    "photo": "photo",    "subtitle": [      "address",      "delivery_area"    ]  },  "tile": {    "face": "slip-list"  },  "page": [    {      "columns": [        "photo",        "name",        "address",        "directions"      ]    },    {      "heading": "About",      "columns": [        "about"      ]    },    {      "heading": "Delivers to",      "columns": [        "delivery_area"      ]    }  ],  "instructions": "The kitchen as customers read it: its name, a few words about it, where it is and the areas it delivers to.",  "card": {    "face": "nancy.place",    "fields": [      {        "slot": "photo",        "column": "photo"      },      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "address"      },      {        "slot": "body",        "column": "about"      },      {        "slot": "facts",        "column": "delivery_area",        "also": [          "address",          "directions"        ]      }    ]  }}