Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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. 

1 Accepted Solution

Avatar

Correct answer by
Level 3

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.
    imshailesh_0-1688670265850.png

     



  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.

    imshailesh_1-1688670665648.png


    Regards,
    Shailesh




View solution in original post

4 Replies

Avatar

Level 4

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

 

Regards,

Ayush

Avatar

Correct answer by
Level 3

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.
    imshailesh_0-1688670265850.png

     



  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.

    imshailesh_1-1688670665648.png


    Regards,
    Shailesh




Avatar

Community Advisor

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

PreetpalSinghBi_0-1688670694352.png

 

 

screenshot 2

PreetpalSinghBi_1-1688670707476.png

 

 

thanks,

Preetpal

 

Avatar

Level 10

@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.Tanika02_0-1688670728866.png