cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain URL of assocs in a template ?

fisico
Champ in-the-making
Champ in-the-making
All in the title. How is it possible to do ?

Is there a syntax document about template ?
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
Yes:

<#if document.assocs["cm:translations"]?exists>
   http://localhost:8080/alfresco${document.assocs['cm:translations'][0].url}
</#if>
See: http://www.alfresco.org/mediawiki/index.php/Template_Guide
look for "assocs" API and examples.

fisico
Champ in-the-making
Champ in-the-making
Ok thank you.