When setting up Element Templates and Container Templates what exactly is the difference between the options: Master and Template?
Hi Richard,
When a template is of the type “Master”, most fields are not editable at container or element level. Making a change at template / master level affects all records originating from them.
When a template is of the type “Template”, all fields are editable; the template provides the default.
In short:
Master = Rigid/fixed structure, no changes are possible.
Template = Provides defaults, changes are possible.
Thanks Yori!
In addition, for the REST endpoints, it works when you use the functions for the data.
For example, on the Headless CMS element-level, you can access Markdown by two fields
markdown_content_element
markdown_content()
In your endpoints you should use the markdown_content()
function.
The function makes that, when the Element is based on a template type “Master”, that the Markdown content of the template is returned. When it’s type “Template”, the content of the element is returned.