cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the default document list actions behavior?

douglascrp
World-Class Innovator
World-Class Innovator
I need to change the document list default actions behavior.

My requirements are:
Change the document's name link action to the view in browser action.
Change de view in browser button link to the document details action.

I'm trying to do this in Alfresco 4.0d

Thanks
1 REPLY 1

douglascrp
World-Class Innovator
World-Class Innovator
Hi.

You have to modify the documentlist.js and make some changes on function DL_generateFileFolderLinkMarkup.
This file is located in <tomcat path>/webapps/share/components/documentlibrary

You can use this to build the view link
html = scope.getActionUrls(record, recordSiteName).viewUrl;

After doing this change, you will need to minimize the javascript and save this minimized file as documentlist-min.js

Let me know if I can help you with this.