Get report of external videos added on a sites | Community
Skip to main content
Level 6
April 4, 2023
Solved

Get report of external videos added on a sites

  • April 4, 2023
  • 1 reply
  • 489 views

Hi 

I have a site 'XXX' I want to get a report of how many external videos are there for xxx.com site

 

For suppose I have created a page( /content/xxx/en-in/test-page) on this page I added an external video(youtube)

 

 

I used this query to get the list
path:
/content/xxx
type:dam:Asset

property=metadata.videoSource 

property.value=YOUTUBE
also this query
path:/content/<XXX>//element(*, cq:Component)[@videosource-YOUTUBE]
orderby=path

I am not getting any result can anyone help me to fix this

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 Saravanan_Dharmaraj

@vani1012 , you can query by sling:resourceType and VideoSource property under path xxx. I am assuming the author add the youtube videos by card video component as shown in the picture above.

 

Query

path=/content/xxx

p.limit=-1

type=nt:unstructured

1_property=sling:resourceType

1_property.value=business/component/c.....

2_property=videoSource

2_property.value=YOUTUBE

orderby=path

 

 

 

 

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
April 5, 2023

@vani1012 , you can query by sling:resourceType and VideoSource property under path xxx. I am assuming the author add the youtube videos by card video component as shown in the picture above.

 

Query

path=/content/xxx

p.limit=-1

type=nt:unstructured

1_property=sling:resourceType

1_property.value=business/component/c.....

2_property=videoSource

2_property.value=YOUTUBE

orderby=path