Expand my Community achievements bar.

SOLVED

How to find brief history of component?

Avatar

Level 3

Hi,

I have created one component. I just want to know in which page and how many places(pages) this component is being used.
Is there any way to find in CQ?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

Assuming your component is included dynamically, you can do this with a search. Something like //element(*)[@sling:resourceType='myco/components/content/foo']

Will show you all the places where the foo component is used.

Regards,

Justin

View solution in original post

4 Replies

Avatar

Community Advisor

You can use OOTB Component Reporting.

http://localhost:4502/etc/reports/compreport.html

Here you can also add filter if you are looking for usage of specific component under the content tree.

- Runal

Avatar

Correct answer by
Employee

Hi,

Assuming your component is included dynamically, you can do this with a search. Something like //element(*)[@sling:resourceType='myco/components/content/foo']

Will show you all the places where the foo component is used.

Regards,

Justin

Avatar

Level 3

Thanks Justin..It is showing all the places where the foo component is used...:) Can you please tell me how can I learn such queries in CQ? Is there any doc available in Adobe site?

 

Thanks

Avatar

Employee

You might want to look at http://docs.adobe.com/docs/en/crx/2-3/developing/searching_in_crx.html and the various pages in the JCR specification linked to from that page.