Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Create a new custom template type step by step in AEM 6.4

Avatar

Avatar
Establish
Level 3
kchaurasiya
Level 3

Likes

32 likes

Total Posts

33 posts

Correct Reply

6 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 3
kchaurasiya
Level 3

Likes

32 likes

Total Posts

33 posts

Correct Reply

6 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 3

07-06-2021

Create New Custom template type from the existing we-retail site.

 

Step 1 : Navigate to the /conf/we-retail/settings/wcm

kchaurasiya_16-1623122819051.png

 

Expand the template-types

kchaurasiya_17-1623122819052.png

 

Step 2: Copy the empty-page template inside the /template-types and rename as homepage or other name as per your choice.

kchaurasiya_18-1623122819052.png

 

Step3 : Now Navigate to /conf/we-retail/settings/wcm/template-types/homepage/initial/jcr:content  here you can give your rendering component path

 

For Example – If I am creating the template-type for the home page then I can give the homepage as a rendering component as per the below.

weretail/components/structure/homepage

But I am using the page as a rendering component. Please see the snapshot below for the reference.

kchaurasiya_19-1623122819056.png

 

Step4 : Now Navigate to /conf/we-retail/settings/wcm/template-types/homepage/structure/jcr:content  update the same rendering component whichever you have given on above. I used the page as rendering component above and I am giving the same here.

kchaurasiya_20-1623122819060.png

 

 

Step5: Navigate to /conf/we-retail/settings/wcm/template-types/homepage/jcr:content and change the title and description as per below.

kchaurasiya_21-1623122819064.png

 

Save the changes.

Step6 : Now you can create the template using the homepage template type

Navigate to the templates Screen(http://localhost:4502/sites.html/content/we-retail)

kchaurasiya_22-1623122819065.png

 

Open the we-retail templates (http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf/we-retail)

Now you can try to create the template so that you can see the new template-type as homepage.

 

kchaurasiya_23-1623122819081.png

 

AEM 6.4 AEM template type Create a new template type Custom template type

Replies

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,162 likes

Total Posts

6,273 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,162 likes

Total Posts

6,273 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

15-06-2021

@kchaurasiya , thank you for sharing this with the AEM community. This is a really good read. 

-Kautuk