AEM 6.2 - Dam Assets information | Community
Skip to main content
New Participant
June 25, 2016
Solved

AEM 6.2 - Dam Assets information

  • June 25, 2016
  • 5 replies
  • 9240 views

Hi everyone,

 

This might be a stupid question but is there any way to see how many assets there is in the DAM ?

And the global size of the DAM ?

 

Can't find it, and it seems to be something basics to me no?

 

Regards,

Grégory

Best answer by abhishekb

I use this query regularly to get this information in json format. It works great at all path levels.

http://localhost:8051/bin/querybuilder.json?type=dam:Asset&path=/content/dam&p.limit=-1

5 replies

abhishekbAccepted solution
New Participant
June 27, 2016

I use this query regularly to get this information in json format. It works great at all path levels.

http://localhost:8051/bin/querybuilder.json?type=dam:Asset&path=/content/dam&p.limit=-1

kautuk_sahni
Employee
June 27, 2016

Hi 

Adding one more reference for you, 

If you would like to add asset count column to list view, then please refer this this article:-

Link:- http://experience-aem.blogspot.in/2016/05/aem-62-add-asset-count-column-to-list-view-show-asset-count-in-card-view.html

Demo:- https://drive.google.com/file/d/0B4d6KmbLkAumU0xmbU1aY0tFeGc/view

Package:- https://drive.google.com/file/d/0B4d6KmbLkAumVUVxbFp5MVZzUnM/view

Link 6.1 :- http://experience-aem.blogspot.com/2015/09/aem-61-touch-ui-add-new-column-to-assets-console-list-view.html

I hope this will also help you.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
kautuk_sahni
Employee
June 27, 2016

Hi 

Please have a look at theses queries:-

Go to:- http://localhost:4502/crx/explorer/ui/search.jsp

Number of digital assets in DAM

// element(*, dam:Asset) order by @jcr:score

Number of images

// metadata[jcr:like(@dam:MIMEtype, 'image/%’)] order by @jcr:score

Total number of nodes 

// * order by @jcr:score

Total number of CQ pages

 // element(*, cq:Page) order by @jcr:score

 

As mentioned by Opkar, Disk Usage Reports is used when you need to find which folder is taking the maximum space (it is server side load).

Disk Usage Report:

/etc/reports/diskusage.html

Disk Storage by DAM Assets:

/etc/reports/diskusage.html?path=/content/dam

 

I hope this will help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Employee
June 26, 2016

Hi,

you can get the size for a folder path from the disk usage report[0]. But be careful with this page as it will put a load on your server. Number of Assets could be via a query, as the above report will give a count of the JCR nodes for a path.

Regards,

Opkar

[0] http://localhost:4502/etc/reports/diskusage.html?path=/content/dam

smacdonald2008
New Participant
June 25, 2016

You can use QueryBuilder APi to query all DAM assets and count result set.