Monday, June 20, 2016

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

Query to find the pages with the properties of child nodes of the page


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.



2 comments:

  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

Contact Form

Name

Email *

Message *