As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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 ?
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/alfresco/components/documentlibrary/data/surf-doclist.lib.js#L987) and documentlist-view-details.js (https://github.com/Alfresco/share/blob/master/share/src/main/webapp/components/documentlibrary/documentlist-view-detailed.js#L402). 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.