Silly Question - Query Builder to find published sites in a path | Community
Skip to main content
Level 3
October 7, 2022
Solved

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

  • October 7, 2022
  • 2 replies
  • 682 views

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.

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 manjunathdj

@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-pages-which-are-published-using/td-p/404949

 

hopes help you.

 

Thanks,

Manjunath DJ

 

2 replies

manjunathdj
manjunathdjAccepted solution
October 7, 2022

@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-pages-which-are-published-using/td-p/404949

 

hopes help you.

 

Thanks,

Manjunath DJ

 

Level 4
October 7, 2022

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.