Determine components used on a Page

One of the common thing with CQ5 Pages is how to determine which all CQ5 components form the page. Most common process is to log-in to CRX and go through each node to determine the structure. This is time consuming activity.
But there is a better way to determine that and that is


suffix the url with ?debug=layout in Authoring environment.

This will present a page with all the component highlighted.

Posted in Day CQ | Tagged , , | Leave a comment

Quick way to find information of specific type in CQ

Finding/Searching specific type of information is always tricky in Day CQ5.
For example: Determining all pages which uses specific templates. A quick and fast way is to perform search in CRX Content Explorer:
- Login Day CQ5 – go to Content Explorer
- Click on search and select type as XPath
- Specify query that match the required information.
Example:


/jcr:root/content/mysite//*[@cq:template = ‘/apps/mysite/templates/mypage’

This will return all the pages created based on the template.

Posted in Day CQ | Tagged , , , , | Leave a comment