Query debugger to find component from multiple path and identify which script is used. | Community
Skip to main content
September 13, 2022
Solved

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

  • September 13, 2022
  • 2 replies
  • 1217 views

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sachin_Arora_

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

2 replies

ksh_ingole7
Community Advisor
Community Advisor
September 13, 2022

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

 

 

phampiAuthor
September 13, 2022

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

Sachin_Arora_
Community Advisor
Sachin_Arora_Community AdvisorAccepted solution
Community Advisor
September 13, 2022

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