12-01-2017 02:22 AM
Good morning,
Alfresco 5.
I have changed directly the code of /tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-documents.get.config.xml to change the max items from 50 to 6, to show only 6 results.
<config>
<max-items>6</max-items>
<filters>
<filter type="recentlyModifiedByMe" />
<filter type="editingMe" />
<filter type="favourites" />
<filter type="synced" evaluator="syncMode.getValue() != 'OFF'" />
<filter type="syncedErrors" evaluator="syncMode.getValue() == 'ON_PREMISE'" />
</filters>
</config>
But doesn´t work. It still show in recentrlymodifiedbyme 50 results, not 6.
Have I to do something more (please, step-by-step)?
Thanks,
Jorge
12-01-2017 03:29 AM
Good finding.
You need to make changes inside below file
share-war\components\dashlets\my-documents.js
Update below method.
getWebscriptUrl: function SimpleDocList_getWebscriptUrl()
{
return Alfresco.constants.PROXY_URI + "slingshot/doclib/doclist/documents/node/alfresco/company/home?max=50";
},
To
getWebscriptUrl: function SimpleDocList_getWebscriptUrl()
{
return Alfresco.constants.PROXY_URI + "slingshot/doclib/doclist/documents/node/alfresco/company/home?max=6";
},
It is bug in alfresco , URL parameter max should be taken from config script but its not so you need to update in above file.
12-01-2017 02:55 AM
After making changes you need to refresh share side webscript/restart the server.You can use below url to refresh webscript.
http://localhost:8081/share/service/index
Have you done this?
12-01-2017 03:15 AM
Thanks, yes but still do the same.
12-01-2017 03:29 AM
Good finding.
You need to make changes inside below file
share-war\components\dashlets\my-documents.js
Update below method.
getWebscriptUrl: function SimpleDocList_getWebscriptUrl()
{
return Alfresco.constants.PROXY_URI + "slingshot/doclib/doclist/documents/node/alfresco/company/home?max=50";
},
To
getWebscriptUrl: function SimpleDocList_getWebscriptUrl()
{
return Alfresco.constants.PROXY_URI + "slingshot/doclib/doclist/documents/node/alfresco/company/home?max=6";
},
It is bug in alfresco , URL parameter max should be taken from config script but its not so you need to update in above file.
12-01-2017 05:55 AM
Sorry, do the same. I'm testing with existing users.
12-01-2017 05:56 AM
did not get your point
12-01-2017 06:03 AM
done!!! I have changed too "?max=50" for "?max=6" in my-documents-min.js.
thanks Krutik
12-05-2017 09:33 AM
Ideally it should not have been changed in *-min.js , it should be in my-documents.js and then compressed.
Explore our Alfresco products with the links below. Use labels to filter content by product module.