cancel
Showing results for 
Search instead for 
Did you mean: 

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

psaluja
Champ in-the-making
Champ in-the-making

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 2

angelborroy
Community Manager Community Manager
Community Manager

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 

Hyland Developer Evangelist

jpotts
World-Class Innovator
World-Class Innovator

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.