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