Created
September 29, 2025 14:52
-
-
Save VivekSaha/d50e4e45780864dac3d0b90ef6b0536d to your computer and use it in GitHub Desktop.
AEM Create Template Type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To create new page template type:- | |
| ui.content\src\main\content\jcr_root\conf\aemgeeks\settings\wcm\template-types | |
| Here, I need to create a new folder or clone the existing Page folder. | |
| ui.content\src\main\content\jcr_root\conf\aemgeeks\settings\wcm\template-types\newpage | |
| Update .content.xml | |
| ui.content\src\main\content\jcr_root\conf\aemgeeks\settings\wcm\template-types\newpage\.content.xml | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
| jcr:primaryType="cq:Template"> | |
| <jcr:content | |
| jcr:description="New Page Description" | |
| jcr:primaryType="cq:PageContent" | |
| jcr:title="New Page"/> | |
| </jcr:root> | |
| Update root .content.xml | |
| ui.content\src\main\content\jcr_root\conf\aemgeeks\settings\wcm\template-types\.content.xml | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal" | |
| jcr:mixinTypes="[rep:AccessControllable]" | |
| jcr:primaryType="cq:Page"> | |
| <xf/> | |
| <rep:policy/> | |
| <page/> | |
| <newpage/> | |
| </jcr:root> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment