AnsweredAssumed Answered

[SOLVED] Error when sorting folders

Question asked by laurent1050 on Sep 21, 2010
Latest reply on Sep 27, 2010 by laurent1050
Hi,

I'm trying to sort the folders in Share alphabetically.

I've overrided alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.json.ftl


"items":
   [
      <#list doclist.items?sort_by("cm:name") as item>
      {
         <@itemLib.itemJSON item=item />
      }<#if item_has_next>,</#if>
      </#list>
   ]

But I've an error message saying
08210042 Wrapped Exception (with status template): 08210210 Error during processing of the template '?sort_by(…) failed: The "cm:name" subvariable was not found.'. Please contact your system administrator.

What is the correct parameter for the sort_by ?

Thanks
Laurent

Outcomes