Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.5 find all pages that use a specific Template

Avatar

Level 5

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
Level 7

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

0 Replies

Avatar

Employee

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

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.