I'd like to display a simple download button with a certain text, which downloads a
file attached to this xwiki page when clicked. The link has to be relative to the current
page (file is attached there).
I tried the following variations of the html macro with no success. Is it possible?
Otherwise we will just create images for download buttons and links on them.
(xwiki 8.4.3)
{{html wiki="true"}}
<form action="">
<input type="submit"
value="[[Download>>attach:SomeFile.png]]"/>
</form>
{{/html}}
{{html wiki="true"}}
<form action="[[Download>>attach:SomeFile.png]]">
<input type="submit" value="Download"/>
</form>
{{/html}}
{{html}}
<form action="WebHome/Trendset_Dialog.png">
<input type="submit"
value="[[Download>>attach:SomeFile.png]]"/>
</form>
{{/html}}
{{html wiki="true"}}
<button type="button"
onclick="[[attach:SomeFile.png]]">Download</button>
{{/html}}
{{html}}
<button type="button"
onclick="WebHome/Trendset_Dialog.png">Download</button>
{{/html}}
Thanks.