cancel
Showing results for 
Search instead for 
Did you mean: 

Order documents in the dashboard

martial
Champ in-the-making
Champ in-the-making
Hello,

I make a new dashboard, and I want to order my documents from the more recent to the older.
I don't know how to make that(in a simple way, while perhaps using javascript API)
My template is like that for the moment :

<#list userhome.children as child>
       <#if child.isDocument>
                   <#assign datetimeformat="dd MMM yyyy HH:mm">
                   <table>…
                   ${child.properties.created?string(datetimeformat)}

                   ${child.properties.name}
                    ….
                    </table>
       </#if>
</#list>

Thanks for your help.

(Alfresco 1.3)
2 REPLIES 2

sebastien_marin
Champ in-the-making
Champ in-the-making
Hi, i am very interested to that functionnality. So is it possible to do that and where to implement it ?

thank you.

Hello,

I make a new dashboard, and I want to order my documents from the more recent to the older.
I don't know how to make that(in a simple way, while perhaps using javascript API)
My template is like that for the moment :

<#list userhome.children as child>
       <#if child.isDocument>
                   <#assign datetimeformat="dd MMM yyyy HH:mm">
                   <table>…
                   ${child.properties.created?string(datetimeformat)}

                   ${child.properties.name}
                    ….
                    </table>
       </#if>
</#list>

Thanks for your help.

(Alfresco 1.3)

kevinr
Star Contributor
Star Contributor
This is not currently possible, as the sort function in freemarker cannot apply to maps that work like the properties of a node do. Please raise it as a JIRA issue.

Thanks,

Kevin