03-17-2017 02:08 AM
Hi Guys,
How can we disable Rename option which appears on hovering on a file or folder name from Share document library in Alfresco 5.1.x?
Regards,
Kavi
03-17-2017 09:50 AM
There is no default option to disable that convenience feature. You would have to configure/override a metadata-template and configure an explicit "title" line to render the document name, title and/or version. There might also be some minor layout differences afterwards because you are effectively replacing the default yet specialized title renderer (when none has been configured explicitly) with a generic one.
03-17-2017 11:19 AM
Just to clarify, you could disable the rename action by removing it from the list of actions or setting its evaluator to false. What Axel is saying is that even if you do that, people could still do a rename simply by editing the properties and changing the name.
Then you'd also have to think about other file protocols such as CIFS, FTP, WebDAV, and IMAP, all of which could be used to do the rename.
03-19-2017 04:05 PM
I did that some times in the past by customizing the document library javascript files and removing all the references to "insituEditors".
You can find that by searching for the Alfresco.util.createInsituEditor function.
I consider that a dirty hack, but it was the only way I was able to achieve that, and in my opinion, that should be something configurable.
Explore our Alfresco products with the links below. Use labels to filter content by product module.