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
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
thx, i'll try
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.