OpenContent icon indicating copy to clipboard operation
OpenContent copied to clipboard

Render error if a manifest does not contain a "main" template

Open Timo-Breumelhof opened this issue 3 years ago • 0 comments

This template works:

{
    "editWitoutPostback": true,
    "index": true,
    "templates": {
        "base": {
			"type": "single",
            "title": "base",
			"clientSide": false,			
            "main": {
                "template": "template.hbs"
            }
        }
    }
}

This one doesn't

{
    "editWitoutPostback": true,
    "index": true,
    "templates": {
        "base": {
			"type": "single",
            "title": "base",
			"clientSide": false,			
            "main": {
                "template": "template.hbs"
            }
        }
    }
}

As per the documentation I thought Main was used for list templates, but it's also required for single templates. I had a typo in main and it took me wile before I found the issue as nothing was rendered. I think rendering an error could help?

Timo-Breumelhof avatar Oct 12 '22 13:10 Timo-Breumelhof