Sunday, June 19, 2016

Query the pages with the properties of child node - Adobe CQ5/AEM

Query the pages with the properties of child node - Adobe CQ5/AEM

SELECT * FROM [cq:Page] AS page WHERE ISDESCENDANTNODE(page ,"<<Parent folder of pages>>")  AND [jcr:content/<<child node name>>/<<child node property>>]=<<value>>

e.g

SELECT * FROM [cq:Page] AS page WHERE ISDESCENDANTNODE(page ,"/content")  AND [jcr:content/test_node/test_property=test

http://<<AEM Host>>:<<AEM Port>>/crx/explorer/ui/search.jsp - Paste the query and click on Search Now.


1 comment:

  1. Hi Albin,

    We can lots of things by using bulk editor. Please look in to below link.
    https://docs.adobe.com/docs/en/cq/5-6-1/administering/bulk_editor.html

    Thanks,
    Sumanth

    ReplyDelete