Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Purpose of using Template types

Avatar

Level 2

Template-types are known as templates for creating templates. What is the need of this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor
  • 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-tem...

Avatar

Correct answer by
Community Advisor

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. 

Avatar

Community Advisor

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-tem...