Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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
Level 9

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

Level 5

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 2

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
Level 9

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