2015-12-11

matt harris wrote:
Any way of inserting a direct download link?

These browsers support the download attribute in links. This forces the document to be downloaded rather than displayed in the browser. It will default to the same filename as that on the server, or you can provide a custom one. Either way the user will be able to change the name. As far as I can see, browsers like IE and Safari that don't support download silently ignore it.

I found a hack to add this attribute by changing the Internet link to a Script link and using mismatched quotation marks, as in the following screenshot:
hacking-download-attribute-into-scriptlink.png
That hack works OK in H&M 7.0.8 but might not work in H&M 5 (which is what this forum is for) or in future builds. Alternatively, you could implement this either by manually editing your topic files each time you publish them, or by using Insert HTML code object to create the link manually, like the code below.

Code:

<a href="prospect-theory.pdf" download="my-custom-filename.pdf" class="weblink">
Prospect Theory: An Analysis of Decision under Risk (Kahneman & Tversky 1979)</a>

By the way, are you really using version 5 of Help & Manual? The latest release is much better in my opinion.

Statistics: Posted by Simon Dismore — Fri Dec 11, 2015 4:47 pm

Show more