02-10-2019 04:59 AM
Hello,
i'm making a freemarker dashlet and i need to list document library:
<#assign docurl=url.extension>
<#list companyhome.childByNamePath["Sites/"+docurl+"/documentLibrary"].children as child>
<#if child.isContainer>
............
<#else>
...........
</#if>
</#list>
i can access the child.properties.title, child.properties.creator, etc., but now i ask to you if it's possible to access the tags and categories of the single document (child).
Thanks and regards,
frank
02-12-2019 12:46 AM
Hi,
You can access tags of document using taggingService.
getTag | Alfresco Documentation
You can get category of document using script like this.
var cats = document.properties["cm:categories"];
for (var i = 0; i < cats.length ; i++){
var catName = cats[i].name;
}
Thanks,
Sanjay
02-14-2019 03:54 AM
thx, i'll try
Explore our Alfresco products with the links below. Use labels to filter content by product module.