<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<r:template template="workspace://SpacesStore/d06669dc-41ed-11dd-aa62-251f03501ab9" />
<#– Liste des documents de type "monNamespace:monContentType" –>
<#– Shows the Icon and link to the content for the doc, also the size in KB and lock status –>
<#assign rowcount=0>
<table>
<tr style='background-color: #C6D8EB'>
<td></td>
<td><b>Name</b></td>
<td><b>Size</b></td>
<td><b>Modified Date</b></td>
<td><b>Locked By</b></td>
</tr>
<#list userhome.children as child>
<#if child.isDocument>
<#if rowcount % 2 = 0><tr><#else><tr style='background-color: #DEE5EC'></#if>
<td><a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon16}" border=0></a></td>
<td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td>
<td>${(child.size / 1000)?string("0.##")} KB</td>
<td>${child.properties.modified?datetime}</td>
<td> <#if child.isLocked>${child.properties.lockOwner}</#if></td>
</tr>
<#assign rowcount=rowcount+1>
</#if>
</#list>
</table>
pour l'instant c'est juste une copie du fichier my_docs.ftl qui existait déjà. Ca marche. Enfin plutôt il n'y a pas d'erreurs mais ça n'affiche rien. Reste à adapter pour obtenir ce que je veux.pour chercher les noeuds d'un content type particulier,c'est possible via Lucene avec le mot clé TYPE : http://wiki.alfresco.com/wiki/Search#Finding_Nodes_By_Type
il s'agit du mot clé "reverse" tout simplement, comme indiqué dans la doc freemarker : http://freemarker.sourceforge.net/docs/ref_builtins_sequence.html
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
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.