Hi Darren,
Actually, you could achieve this behavior pretty easily. You should open the ~/Sitefinity/Admin/ControlTemplates/Libraries/Dialogs/DocumentEditorDialog.ascx file and in the editHolder Panel, add a checkbox input which would determine whether the file will be downloadable:
| <span>Make it downloadable:</span> |
| <input type="checkbox" id="downloadble" /> |
After that, in the same file, you will need to modify the insertLink function, by finding the checkbox added previously and add to the document url the download=true query string if checked:
| downloadble = document.getElementById('downloadble'); |
| |
| if (downloadble.checked) |
| closeArgument.href = selValue.value + '?download=true'; |
| else |
| closeArgument.href = selValue.value; |
This should do the trick. Hope it helps.
Greetings,
Vassil Daskalov
the Telerik team