Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Query debugger to find component from multiple path and identify which script is used.

Avatar

Level 3

Hi All, 

 

Hope you all are good and doing great. 

 

Looking for solution on query debugger to find component.

We have one component named ab which is hidden component and consists of two different a.jsp and b.jsp respectively included in ab.jsp

Either a.jsp or b.jsp visible according to condition mentioned in ab.jsp

I am getting pages with query debugger but unable to find occurrence of which component (a or b) is present in it.

Could anyone please help on this. 

Thanks in advance. 

Regards,

Pavan

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You can write query on component resourceType and get count for various scenario. For example I did for list component which is configured either for Child pages or Static pages.

Use case 1 : static pages

path=/content/we-retail
1_property=sling:resourceType
1_property.value=weretail/components/content/list
2_property=listFrom
2_property.value=static

Use case 2 : children page

path=/content/we-retail
1_property=sling:resourceType
1_property.value=weretail/components/content/list
2_property=listFrom
2_property.value=children

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @phampi 

 

Is there any property in the component that differentiates both the components? 

 

If yes, you can leverage that property and hit the query. 

 

Thanks

 

 

Avatar

Level 3

Hi @ksh_ingole7

Thanks for the quick reply. 

Tried with one unique property of those components but still no luck for expected result.

Regards,

Pavan

Avatar

Correct answer by
Community Advisor

You can write query on component resourceType and get count for various scenario. For example I did for list component which is configured either for Child pages or Static pages.

Use case 1 : static pages

path=/content/we-retail
1_property=sling:resourceType
1_property.value=weretail/components/content/list
2_property=listFrom
2_property.value=static

Use case 2 : children page

path=/content/we-retail
1_property=sling:resourceType
1_property.value=weretail/components/content/list
2_property=listFrom
2_property.value=children