Skip to content

Entry Types

spAnser edited this page Jun 3, 2016 · 9 revisions
{
    "entryTypes": [{
        "sectionHandle": "singlePage", // use "sectionName" if using version 1.0.2 or below
        "hasTitleField": true,
        "titleLabel": "Title", // If hasTitleField
        "titleFormat": "{section.name|raw}", // If not hasTitleField
        "name": "Page",
        "handle": "page",
        "fieldLayout": {
            "News Content": [ // This can be any string. It will be the title of tab 1
                "excerpt", // Use the name of the Field you want to use. However this also assumes you are using unique field names
                "body"
            ],
            "Meta Data": [ // This can be any string. It will be the title of tab 2
                "seoTitle",
                "seoDescription",
                "openGraphTitle",
                "openGraphDescription",
                "openGraphImage",
                "openGraphURL"
            ]
        },
        "requiredFields": {
            // This part is not currently supported by the plugin
        }
    },
    {
        // The Channel markup is the same as the Structure markup
        "sectionHandle": "channelPage", // use "sectionName" if using version 1.0.2 or below
        "hasTitleField": true,
        "titleLabel": "Title", // If hasTitleField
        "titleFormat": "{section.name|raw}", // If not hasTitleField
        "name": "Page",
        "handle": "page",
        "fieldLayout": {
            "News Content": [ // This can be any string. It will be the title of tab 1
                "excerpt", // Use the name of the Field you want to use. However this also assumes you are using unique field names
                "body"
            ],
            "Meta Data": [ // This can be any string. It will be the title of tab 2
                "seoTitle",
                "seoDescription",
                "openGraphTitle",
                "openGraphDescription",
                "openGraphImage",
                "openGraphURL"
            ]
        },
        "requiredFields": [ // Only support in versions higher than 1.0.2
            "seoTitle",
            "seoDescription"
        ]
    }]
}
Clone this wiki locally