Is there a way to Identify empty sub folders in Document Repository?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Is there a way to Identify empty sub folders in Document Repository?

We are automatically creating a set of sub-folders each time a new folder is created at the document type level. We need a way to identify if a sub-folder is empty, either by auto tagging it or using a different icon, or by showing a 0 document count next to it.  Is there a solution for it?

2 Replies
Highlighted
Alfresco Employee

Re: Is there a way to Identify empty sub folders in Document Repository?

In Share, you can use an indicator with an evaluator and a customised icon.

Predefined evaluators | Alfresco Documentation 

Document Library | Alfresco Documentation 

Status Indicators in Alfresco Share | Arvixe Blog 

Software Engineer in Alfresco Search Team.
Highlighted
Professional

Re: Is there a way to Identify empty sub folders in Document Repository?

Write a behavior that is bound to cm:folder (or your custom folder type, as appropriate). Have the behavior check to see if the folder contains children. Set the result of that on a custom property defined in an aspect (like cust:isEmpty or cust:hasChildren). Now use the links Angel provided to see how to show an indicator according to your new custom property. Voila.