{"id":9232,"date":"2024-06-19T13:53:28","date_gmt":"2024-06-19T13:53:28","guid":{"rendered":"https:\/\/axamit.com\/?post_type=glossary-article&#038;p=9232"},"modified":"2024-06-25T14:11:48","modified_gmt":"2024-06-25T14:11:48","slug":"what-are-considered-templates-in-aem","status":"publish","type":"glossary-article","link":"https:\/\/axamit.com\/glossary\/aem\/what-are-considered-templates-in-aem\/","title":{"rendered":"What Are Considered Templates in AEM?"},"content":{"rendered":"<div class=\"custom-toc\"><ul><\/ul><\/div>\n<h2 class=\"wp-block-heading\">Short Answer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Adobe Experience Manager (AEM), templates are pre-defined structures that dictate the layout and initial content of pages created within the platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding AEM Templates<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">The Role of Templates in AEM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Templates in AEM serve as the foundation for creating pages. They define the page structure, components, and their configuration, ensuring consistency across the content of a website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Types of Templates in AEM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">AEM offers two main types of templates:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Static Templates: Defined by developers in the JCR (Java Content Repository) and less flexible, requiring developer intervention to update.<\/li>\n\n\n\n<li>Editable Templates: Introduced in AEM 6.2, they provide authors with more control to create and manage page templates through the template editor.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Static Templates<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Characteristics of Static Templates<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Static templates are the traditional way of creating templates in earlier versions of AEM. They are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Less flexible after creation.<\/li>\n\n\n\n<li>Defined by developers.<\/li>\n\n\n\n<li>Stored under the \/apps directory in the repository.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Creating a Static Template<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Develop the Template Structure: Developers write the HTML structure and include components using JSP or HTL.<\/li>\n\n\n\n<li>Define the Content: They specify the initial content and design for pages.<\/li>\n\n\n\n<li>Deploy the Template: The template is deployed to the AEM instance.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Editable Templates<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Advantages of Editable Templates<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Editable templates introduced a more flexible and user-friendly approach:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>They can be created and edited by content authors without coding.<\/li>\n\n\n\n<li>Allow for controlled changes through template policies and permissions.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Creating an Editable Template<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Access the Template Console: Templates are managed through AEM&rsquo;s Template Console, usually found at \/libs\/wcm\/core\/content\/sites\/templates.html.<\/li>\n\n\n\n<li>Create the Template: Authors initialize a new template with a basic structure.<\/li>\n\n\n\n<li>Edit the Template: Using the template editor, authors can add and configure components.<\/li>\n\n\n\n<li>Set Policies: Authors define component policies to control the behaviour and style of components within the template.<\/li>\n\n\n\n<li>Enable the Template: Once finalized, the template is enabled for use by content authors to create pages.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Templates are a core concept in AEM, critical for defining the layout and initial setup of pages. They provide a starting point for authors and ensure consistency across the site&rsquo;s content. Whether using static or editable templates, AEM offers solutions to cater to both developer and content author needs, balancing flexibility, control, and ease of use.<\/p>\n","protected":false},"author":12,"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"glossary-category":[43],"class_list":["post-9232","glossary-article","type-glossary-article","status-publish","hentry","glossary-category-aem"],"acf":{"post_title":"Considered Templates"},"_links":{"self":[{"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/glossary-article\/9232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/glossary-article"}],"about":[{"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/types\/glossary-article"}],"author":[{"embeddable":true,"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/users\/12"}],"version-history":[{"count":0,"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/glossary-article\/9232\/revisions"}],"wp:attachment":[{"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/media?parent=9232"}],"wp:term":[{"taxonomy":"glossary-category","embeddable":true,"href":"https:\/\/axamit.com\/fr\/wp-json\/wp\/v2\/glossary-category?post=9232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}