i want to hide template /conf/test-web/settings/wcm/templates/page-content | Community
Skip to main content
Level 2
July 6, 2023
Solved

i want to hide template /conf/test-web/settings/wcm/templates/page-content

  • July 6, 2023
  • 4 replies
  • 1406 views

i want to hide this template /conf/test-web/settings/wcm/templates/page-content

 

 

when i create any page  don't want to show this template. how to hide. 

Best answer by imshailesh

Hi @gmahendra !

There can be two cases for your scenario.

  1. Hide template for all paths
    In this scenario, you can go to Tools -> General -> Templates -> Project Folder, Select page-content template and click on Disable button present in Action Bar.

    Click on Disable Button in the Modal.

     



  2. Hide template for certain paths
    Consider you want to hide template for certain path /content/we-retail/language-masters,Follow below steps

    Sites -> path where you want to exclude -> Select the folder -> Open properties of that folder -> Go to Advanced tab -> Search for Allowed Templates -> Add all template path which you want to allow one by one and exclude the path of 

    /conf/test-web/settings/wcm/templates/page-content. 

    It will exclude page-content template when we will try to create a page inside the content path.


    Regards,
    Shailesh




4 replies

ayush-anand
Level 4
July 6, 2023

@gmahendra You can either disable the template or you can specify the cq:allowedPath property based on the requirement.

 

Regards,

Ayush

imshaileshAccepted solution
Level 2
July 6, 2023

Hi @gmahendra !

There can be two cases for your scenario.

  1. Hide template for all paths
    In this scenario, you can go to Tools -> General -> Templates -> Project Folder, Select page-content template and click on Disable button present in Action Bar.

    Click on Disable Button in the Modal.

     



  2. Hide template for certain paths
    Consider you want to hide template for certain path /content/we-retail/language-masters,Follow below steps

    Sites -> path where you want to exclude -> Select the folder -> Open properties of that folder -> Go to Advanced tab -> Search for Allowed Templates -> Add all template path which you want to allow one by one and exclude the path of 

    /conf/test-web/settings/wcm/templates/page-content. 

    It will exclude page-content template when we will try to create a page inside the content path.


    Regards,
    Shailesh




Preetpal_Bindra
Community Advisor
Community Advisor
July 6, 2023

Hello @gmahendra,

Following are the ways you could potentially hide the template,

1. Of course you can "delete" the template.

2. If you do not want to delete, then you can disable it completely from the AEM Authoring instance. See screenshot 1 below.

3. Usually the templates are allowed using cq:allowedTemplates property on the content page. You could remove the templates name from that property. See screenshot 2.

 

screenshot 1

 

 

screenshot 2

 

 

thanks,

Preetpal

 

Tanika02
Level 7
July 6, 2023

@gmahendra -

 

  • In the Templates console, locate the "/conf/test-web/settings/wcm/templates/page-content" template in the template list.

      Tools > Templates > Select your template

 

  • Click on the template to select it, and choose to disable.