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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Silly Question - Query Builder to find published sites in a path

Avatar

Level 3

Hi,

I'm new to... everything here and just wondering if someone could tell me how I can run a query to show me all the published pages down a path. I tried below but I'm not sure im doing it right:

path=/content/workplace-microsites
type=cq:page
property=cq:lastReplicationAction
property.value=Activate
p.limit=-1

Any help would be awesome.

1 Accepted Solution

Avatar

Correct answer by
Level 5

@RooRue  - You can narrow query based on path/template 

property=@jcr:content/cq:lastReplicationAction
property.value=Activate

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-search-for-only-pag...

 

hopes help you.

 

Thanks,

Manjunath DJ

 

View solution in original post

0 Replies

Avatar

Correct answer by
Level 5

@RooRue  - You can narrow query based on path/template 

property=@jcr:content/cq:lastReplicationAction
property.value=Activate

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-search-for-only-pag...

 

hopes help you.

 

Thanks,

Manjunath DJ

 

Avatar

Level 3

Hi @RooRue ,

 

If you want all pages under the path irrespective of the resourceType then your query is correct.

You can test in the query debug tool.

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

 

Also refer the below where you can find many use cases for querying

https://github.com/paulrohrbeck/aem-links/blob/master/querybuilder_cheatsheet.md

 

Hope this helps.