freemarker tags and categories

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

freemarker tags and categories

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

2 Replies
sanjaybandhniya
Intermediate

Re: freemarker tags and categories

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

frank_l
Member II

Re: freemarker tags and categories

thx, i'll try