AnsweredAssumed Answered

change sortField for imagesummary dashlet

Question asked by mrksjs on Feb 22, 2013
Latest reply on Feb 28, 2013 by mrksjs
hello!

i am using community 4.0d and i have a imagesummray dashlet which sorts pictures by cm:name. i would like to change that into cm:created or cm:modified so that the last editet or uploaded picture is the first item in the imagesummary dashlet.
i was able to do this on enterprise 4.1.* without any problem by editing
/tomcat/webapps/share/components/dashlets/imagesummary(-min).js

using
<javascript>
      onReady: function onReady()
      {
         // Execute the request to retrieve the list of images to display
         Alfresco.util.Ajax.jsonRequest(
         {
         // &sortField=cm:created&sortAsc=false
            url: Alfresco.constants.PROXY_URI + "slingshot/doclib/images/site/" + this.options.siteId + "/documentLibrary?max=301&sortField=cm:created&sortAsc=false
</javascript>

instead of
<javascript>
      onReady: function onReady()
      {
         // Execute the request to retrieve the list of images to display
         Alfresco.util.Ajax.jsonRequest(
         {
         // &sortField=cm:created&sortAsc=false
            url: Alfresco.constants.PROXY_URI + "slingshot/doclib/images/site/" + this.options.siteId + "/documentLibrary?max=250
</javascript>

however. this does not take any effect when i do this in my community version. how can i achieve this?

Outcomes