Get report of external videos used on a site | Community
Skip to main content
Level 6
April 4, 2023

Get report of external videos used on a site

  • April 4, 2023
  • 1 reply
  • 2271 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

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

1 reply

DPrakashRaj
Community Advisor
Community Advisor
April 4, 2023

You authored it on aem pages and in your query you are using type as type:dam:Asset which is incorrect. You need to select the type as page node type that you are looking for.

there will be different way of creating the query. You can also work with full text query.

pleas follow below docs to create the query https://gist.github.com/floriankraft/8b3720464318cd5cd9e2

https://aemcorner.com/aem-query-examples-and-tips/

 

Vani1012Author
Level 6
April 4, 2023

Can you share the query 

DPrakashRaj
Community Advisor
Community Advisor
April 4, 2023

path=/content/xxx

fullext=YouTube

orderby=path

p.limit=-1

 

or

 

path=/content/xxx

type=cq:page

property=metadata.videoSource 

property.value=YOUTUBE

orderby=path

p.limit=-1