{
    "$schema": "https:\/\/json-schema.org\/draft\/2020-12\/schema",
    "$id": "https:\/\/www.totalcms.co\/schemas\/blog-legacy.json",
    "type": "object",
    "id": "blog-legacy",
    "description": "A schema for a Total CMS Legacy Blog object. This is used for backwards compatibility with older versions of Total CMS.",
    "properties": {
        "draft": {
            "type": "boolean",
            "label": "Draft",
            "help": "Mark this post as a draft",
            "field": "checkbox"
        },
        "featured": {
            "type": "boolean",
            "label": "Featured",
            "help": "Mark this post as featured",
            "field": "checkbox"
        },
        "archived": {
            "type": "boolean",
            "label": "Archived",
            "help": "Mark this post as a archived",
            "field": "checkbox"
        },
        "id": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/slug.json",
            "label": "Blog Post ID",
            "help": "A unique ID for this post. No spaces or special characters.",
            "field": "id",
            "settings": {
                "autogen": "${title}"
            }
        },
        "title": {
            "type": "string",
            "label": "Title",
            "help": "Blog Post title",
            "field": "text"
        },
        "date": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/date.json",
            "label": "Date",
            "help": "Blog Post date",
            "field": "date",
            "default": "now"
        },
        "author": {
            "type": "string",
            "label": "Author",
            "help": "Author for this post",
            "field": "text",
            "settings": {
                "propertyOptions": true
            }
        },
        "summary": {
            "type": "string",
            "label": "Summary",
            "help": "Blog Post summary",
            "field": "textarea"
        },
        "media": {
            "type": "string",
            "label": "Media",
            "help": "Media URL for this post",
            "field": "text"
        },
        "content": {
            "type": "string",
            "label": "Content",
            "help": "Main blog post content",
            "field": "styledtext"
        },
        "extra": {
            "type": "string",
            "label": "Extra Content",
            "help": "Extra content area for this post",
            "field": "textarea"
        },
        "extra2": {
            "type": "string",
            "label": "Extra Content 2",
            "help": "Extra content area for this post",
            "field": "textarea"
        },
        "genre": {
            "type": "string",
            "label": "Genre",
            "help": "Genre for this post",
            "field": "text",
            "settings": {
                "propertyOptions": true
            }
        },
        "categories": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/list.json",
            "label": "Categories",
            "help": "A list of categories for this post",
            "field": "list",
            "settings": {
                "propertyOptions": true
            }
        },
        "tags": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/list.json",
            "label": "Tags",
            "help": "A list of tags for this post",
            "field": "list",
            "settings": {
                "propertyOptions": true
            }
        },
        "labels": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/list.json",
            "label": "Labels",
            "help": "A list of labels for this post",
            "field": "list",
            "settings": {
                "propertyOptions": true
            }
        },
        "image": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/image.json",
            "label": "Image",
            "help": "Main image for this post",
            "field": "image"
        },
        "gallery": {
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/gallery.json",
            "label": "Gallery",
            "help": "Gallery of images for this post",
            "field": "gallery"
        }
    },
    "required": [
        "id",
        "title"
    ],
    "index": [
        "id",
        "title",
        "image",
        "gallery",
        "date",
        "draft",
        "featured",
        "archived",
        "author",
        "genre",
        "media",
        "categories",
        "labels",
        "tags",
        "summary"
    ],
    "formgrid": "draft featured archived\nid id author\ntitle title date\nimage image tags\nimage image categories\nimage image labels\nimage image genre\nsummary summary summary\ncontent content content\nmedia media media\ngallery gallery gallery\nextra extra extra\nextra2 extra2 extra2"
}