Direcly open file in inline edit mode

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Direcly open file in inline edit mode

Hello,

I want that each time a user open a text file (only file with the extension '.txt'), he automaticly enter inline edit mode instead of landing on the file default details page.

Any ideas or tips ?

1 Reply
Highlighted
Master

Re: Direcly open file in inline edit mode

You can customise the title line renderer via Share configuration + custom client-side JS, and generate a link to the inline-edit page instead of the document details page. Configuring metadata templates and registering custom renderers is documented in https://docs.alfresco.com/6.2/tasks/dev-extensions-share-tutorials-add-metadata-template-doclib.html - what is NOT documented unfortunately is the support of the <title> renderer, but this can be seen in the relevant source code, e.g. surf-doclist.lib.js (https://github.com/Alfresco/share/blob/master/share/src/main/resources/alfresco/site-webscripts/org/...) and documentlist-view-details.js (https://github.com/Alfresco/share/blob/master/share/src/main/webapp/components/documentlibrary/docum...). Be aware though that by providing a custom title renderer, you will lose the ability to rename the file in-situ, and there might be minor styling differences.