Purpose of using Template types | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

https://aemhq.com/posts/what-s-the-point-of-using-a-template-type/

https://myaemlearnings.blogspot.com/2018/03/creation-of-template-types-for-editable.html 

This blog explains better with diagrams on why we need the template type and how to create one. 

2 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
November 3, 2022
  • Template types allow you to define:

    • The resource type of the page component.
    • The policy of the root node, which defines the components allowed in the template editor.
    • It is recommended to define the breakpoints for the responsive grid and setup of the mobile emulator at on the template type. This is optional, because the configuration could also be defined on the individual template (see Template Type and Mobile Device Groups).

 

Please check this out.

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/templates/page-templates-editable.html?lang=en#template-type

Level 2
November 3, 2022

Can you please elaborate the points a bit more?

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
November 3, 2022
Mani_kumar_
Community Advisor
Community Advisor
November 3, 2022

Before understanding the template-types, you need to understand the concept of page component/ static templates.

These are similar to those page components which are used to define the structure of the component and also define the policies, we can also configure layouts for your templates in the template-types

You create template-types only if you have different structure and different

Agenda if not one template-type can used to create multiple templates

 

To get more understanding on static templates please follow

https://experienceleague.adobe.com/docs/experience-manager-64/developing/platform/templates/page-templates-static.html?lang=en