How to create page component in AEM 6.5 | 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 Sady_Rifat

Hello @akshaybhujbale 

  • Create a new component in your project inherited from the core page component. 

 

sling:resourceSuperType="core/wcm/components/page/v3/page"​

 

Customize your page properties if needed same as the other components.

 

  • Now create a template type which resource type will be your page

 

Initial Section - sling:resourceType="my-project/components/page" Policies - Same as other Structure - sling:resourceType="my-project/components/page"​

 

 

  • Then create a template from the newly created template type

 

In Template Config: - cq:templateType="/conf/my-project/settings/wcm/template-types/base-page" - allowedPaths="[/content/my-project(.*)?]" Initial: - cq:template="/conf/my-project/settings/wcm/templates/content-page" - sling:resourceType="my-project/components/page" Policies: - No extra changes Structure: - cq:template="/conf/my-project/settings/wcm/templates/content-page" - sling:resourceType="my-project/components/page"

 

 

You can also see this blog where the process is shown step by step: http://www.sgaemsolutions.com/2019/02/how-to-make-page-component-and-template.html 

3 replies

Shivam153
Level 3
April 11, 2023
Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
April 11, 2023

Hello @akshaybhujbale 

  • Create a new component in your project inherited from the core page component. 

 

sling:resourceSuperType="core/wcm/components/page/v3/page"​

 

Customize your page properties if needed same as the other components.

 

  • Now create a template type which resource type will be your page

 

Initial Section - sling:resourceType="my-project/components/page" Policies - Same as other Structure - sling:resourceType="my-project/components/page"​

 

 

  • Then create a template from the newly created template type

 

In Template Config: - cq:templateType="/conf/my-project/settings/wcm/template-types/base-page" - allowedPaths="[/content/my-project(.*)?]" Initial: - cq:template="/conf/my-project/settings/wcm/templates/content-page" - sling:resourceType="my-project/components/page" Policies: - No extra changes Structure: - cq:template="/conf/my-project/settings/wcm/templates/content-page" - sling:resourceType="my-project/components/page"

 

 

You can also see this blog where the process is shown step by step: http://www.sgaemsolutions.com/2019/02/how-to-make-page-component-and-template.html 

VeenaVikraman
Community Advisor
Community Advisor
April 11, 2023

Hi @akshaybhujbale 

 

  If you new to AEM development , please refer and try https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/overview.html . This is a good starting point to learn AEM development. 

 

There are a lot of videos that will help you with this . Please find below some 

https://www.youtube.com/watch?v=G_9m9Qo45RE


Thanks

Veena ✌