01-06-2020 09:55 AM
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 ?
01-06-2020 10:43 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.