Expand my Community achievements bar.

SOLVED

AEM 6.5 find all pages that use a specific Template

Avatar

Level 8

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 

View solution in original post

4 Replies

Avatar

Employee Advisor

@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.

Screenshot 2022-08-08 at 6.08.03 PM.png

 

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

Avatar

Correct answer by
Community Advisor

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.