Forum Discussion
TariqHussain
8 years agoBoss
cjdinger -
The easiest way to achieve this is using jQuery script. After the page load, update the filename text to preview and download icon text to download.
If you want to achieve this using freemarker, You just need to add ?attachment-id=<attachment.id> after the message URL. However, it will reload the page after clicking on the URL.
e.g <mesageURL>/thread-id/4?attachment-id=17