Skip to content

Sections

spAnser edited this page Apr 12, 2016 · 15 revisions
{
    "sections": [{
        "name": "Single Page",
        "handle": "singlePage",
        "type": "single",
        "enableVersioning": true,
        "typeSettings": {
            "homepage": true,
            "urlFormat": "single-page", // only needed if not "homepage"
            "template": "single-page"
        }
    },
    {
        "name": "Channel Page",
        "handle": "channelPage",
        "type": "channel",
        "enableVersioning": true,
        "typeSettings": {
            "hasUrls": true,
            "urlFormat": "channel-page/{slug}", // only needed if "hasUrls"
            "template": "channel-page/_entry" // only needed if "hasUrls"
        }
    },
    {
        "name": "Structure Page",
        "handle": "structurePage",
        "type": "channel",
        "enableVersioning": false,
        "typeSettings": {
            "hasUrls": true,
            "urlFormat": "structure-page/{slug}", // only needed if "hasUrls"
            "nestedUrlFormat": "{parent.uri}/{slug}", // only needed if "hasUrls"
            "template": "structure-page/_entry", // only needed if "hasUrls"
            "maxLevels": 2
        }
    }]
}
Clone this wiki locally