Name
Wiki

Description
Markdown wiki

Pack
{
  "views": [
    {
      "name": "ShowPage",
      "table": "WikiPages",
      "on_menu": false,
      "is_public": true,
      "on_root_page": false,
      "viewtemplate": "Show",
      "configuration": {
        "layout": {
          "above": [
            {
              "type": "field",
              "block": false,
              "fieldview": "as_text",
              "textStyle": "h1",
              "field_name": "title"
            },
            {
              "type": "field",
              "block": true,
              "fieldview": "showAll",
              "textStyle": "",
              "field_name": "contents"
            },
            {
              "type": "view_link",
              "view": "Own:EditPage",
              "block": true,
              "minRole": "4"
            }
          ]
        },
        "columns": [
          {
            "type": "Field",
            "fieldview": "as_text",
            "field_name": "title"
          },
          {
            "type": "Field",
            "fieldview": "showAll",
            "field_name": "contents"
          },
          {
            "type": "ViewLink",
            "view": "Own:EditPage",
            "minRole": "4"
          }
        ],
        "viewname": "ShowPage"
      }
    },
    {
      "name": "EditPage",
      "table": "WikiPages",
      "on_menu": false,
      "is_public": false,
      "on_root_page": false,
      "viewtemplate": "Edit",
      "configuration": {
        "layout": {
          "above": [
            {
              "aligns": [
                "left",
                "left"
              ],
              "widths": [
                2,
                10
              ],
              "besides": [
                {
                  "above": [
                    null,
                    {
                      "type": "blank",
                      "block": false,
                      "contents": "Title",
                      "textStyle": ""
                    }
                  ]
                },
                {
                  "above": [
                    null,
                    {
                      "type": "field",
                      "block": false,
                      "fieldview": "edit",
                      "textStyle": "",
                      "field_name": "title"
                    }
                  ]
                }
              ]
            },
            {
              "type": "line_break"
            },
            {
              "aligns": [
                "left",
                "left"
              ],
              "widths": [
                2,
                10
              ],
              "besides": [
                {
                  "above": [
                    null,
                    {
                      "type": "blank",
                      "block": false,
                      "contents": "Contents",
                      "textStyle": ""
                    }
                  ]
                },
                {
                  "above": [
                    null,
                    {
                      "type": "field",
                      "block": false,
                      "fieldview": "edit",
                      "textStyle": "",
                      "field_name": "contents"
                    }
                  ]
                }
              ]
            },
            {
              "type": "line_break"
            },
            {
              "type": "action",
              "block": false,
              "minRole": 10,
              "action_name": "Save"
            }
          ]
        },
        "columns": [
          {
            "type": "Field",
            "fieldview": "edit",
            "field_name": "title"
          },
          {
            "type": "Field",
            "fieldview": "edit",
            "field_name": "contents"
          },
          {
            "type": "Action",
            "minRole": 10,
            "action_name": "Save"
          }
        ],
        "viewname": "EditPage",
        "view_when_done": "ShowPage"
      }
    },
    {
      "name": "Pages",
      "table": "WikiPages",
      "on_menu": true,
      "is_public": true,
      "on_root_page": true,
      "viewtemplate": "List",
      "configuration": {
        "columns": [
          {
            "stat": "Count",
            "type": "Field",
            "view": "Own:ShowPage",
            "fieldview": "as_text",
            "field_name": "title",
            "join_field": "",
            "action_name": "Delete",
            "agg_relation": ""
          },
          {
            "stat": "Count",
            "type": "ViewLink",
            "view": "Own:ShowPage",
            "fieldview": "as_text",
            "field_name": "title",
            "join_field": "",
            "action_name": "Delete",
            "agg_relation": ""
          }
        ],
        "viewname": "Pages",
        "view_to_create": "EditPage"
      }
    },
    {
      "name": "PagesAdmin",
      "table": "WikiPages",
      "on_menu": true,
      "is_public": false,
      "on_root_page": false,
      "viewtemplate": "List",
      "configuration": {
        "columns": [
          {
            "stat": "Count",
            "type": "Field",
            "view": "Own:ShowPage",
            "fieldview": "as_text",
            "field_name": "title",
            "join_field": "",
            "action_name": "Delete",
            "agg_relation": ""
          },
          {
            "stat": "Count",
            "type": "ViewLink",
            "view": "Own:EditPage",
            "fieldview": "as_text",
            "field_name": "title",
            "join_field": "",
            "action_name": "Delete",
            "agg_relation": ""
          },
          {
            "stat": "Count",
            "type": "Action",
            "view": "Own:ShowPage",
            "fieldview": "as_text",
            "field_name": "title",
            "join_field": "",
            "action_name": "Delete",
            "agg_relation": ""
          }
        ],
        "viewname": "PagesAdmin",
        "view_to_create": "EditPage"
      }
    }
  ],
  "tables": [
    {
      "name": "WikiPages",
      "fields": [
        {
          "name": "title",
          "type": "String",
          "label": "Title",
          "required": true,
          "is_unique": true,
          "attributes": {
            "options": ""
          }
        },
        {
          "name": "contents",
          "type": "Markdown",
          "label": "Contents",
          "required": true,
          "is_unique": false,
          "attributes": {}
        }
      ],
      "min_role_read": 1,
      "min_role_write": 1,
      "expose_api_read": false,
      "expose_api_write": false
    }
  ],
  "plugins": [
    {
      "name": "markdown",
      "source": "npm",
      "location": "@saltcorn/markdown"
    },
    {
      "name": "plain-bootstrap-theme",
      "source": "npm",
      "location": "@saltcorn/plain-bootstrap-theme"
    }
  ]
}