AEM 6.5 find all pages that use a specific Template | Community
Skip to main content
Level 6
August 8, 2022
Solved

AEM 6.5 find all pages that use a specific Template

  • August 8, 2022
  • 3 replies
  • 4790 views

Hi

I would like to find all pages that use a specific template in AEM 6.5. How can I do that?

I tried the Component report <servername>/miscadmin#/etc/reports/compreport but that did not do what I need.

Thanks in advance.

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 HeenaMadan

You can run query to find all pages created with specific template in querydebug tool.

Open http://localhost:4502/libs/cq/search/content/querydebug.html

 

Add below details :

type=cq:Page
path=/content/<your-project>
1_property=jcr:content/cq:template
1_property.value=<specific template path>

then click search. You will get all pages in results created with specific template.

 

3 replies

Mohit_KBansal
Adobe Employee
Adobe Employee
August 8, 2022

@anasustic Use ACS Commons Report Builder [1] capability, it provides Page Report, which allows you to select root page and template, and list down all pages created with the selected template used root path.

 

[1] https://adobe-consulting-services.github.io/acs-aem-commons/features/report-builder/index.html 

Level 2
August 8, 2022

Hi @anasustic ,

You can run the query to fetch the list. Please refer to the below link for the same.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-blogs/how-to-search-and-get-list-of-all-pages-of-a-given-template-in/ba-p/400644

 

Thanks,

Anil

HeenaMadan
Community Advisor and Adobe Champion
HeenaMadanCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
August 8, 2022

You can run query to find all pages created with specific template in querydebug tool.

Open http://localhost:4502/libs/cq/search/content/querydebug.html

 

Add below details :

type=cq:Page
path=/content/<your-project>
1_property=jcr:content/cq:template
1_property.value=<specific template path>

then click search. You will get all pages in results created with specific template.

 

anasusticAuthor
Level 6
August 8, 2022

Thank you very much. It worked nicely.