Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM 6.2 - Dam Assets information

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

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

View solution in original post

5 Replies

Avatar

Level 10

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

Avatar

Employee

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

Avatar

Administrator

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

Avatar

Administrator

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-coun...

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-vie...

I hope this will also help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Correct answer by
Level 3

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