WebSite X5Help Center

 
David F.
David F.
User

Force download of mp3 file, not play  en

Автор: David F.
Просмотрено 3655, Подписчики 1, Размещенный 0  

I have a text and graphic with a URL link to an MP3 file.  When either is clicked I want the file to be downloaded not played. In HTML5 I can achieve this by adding the word  download after the URL.  If I specify the link in X5 it includes download inside the quotes around the URL, thus.

<a href="http://www.xxx.com/audio/Track001.mp3 download"

Is there any way I can achieve:

<a href="http://www.xxx.com/audio/Track001.mp3" download

Without exporting the HTML and editing it by hand? 

There are 9 of these on the page and they change every two weeks, so I don't want to have to edit manually!

Размещено
4 Ответы
Andre E
Andre E
Moderator

Have you tryed the download button option in the object management section?

step 3 top right manage, refresh, select download button install and try if that one does the trick.

Читать больше
Размещено От Andre E
David F.
David F.
User
Автор

Thanks Andre but two problems;

1 this is an X5 version 9 project and I although I have version 12 I don't want to convert unless I have too.

2 Having paid for the upgrade I expect standard funtionallity like this to be included, otherwise why should I upgrade?

Anyone any ideas in version 9? 

Читать больше
Размещено От David F.
Andre E
Andre E
Moderator

for V9 you could make a link to the file and set a description in it (it's in the TAB description of the link option) there write:for download  to use right mouse button (or something similar. html code protection needs to be off in that case.

Else you could make it a zip file.

This is not an x5 issue, it's the operating system that recognises the file and opens the corresponding program.

But why not update, the programming behind the website is much better in v12 and up to date with standards used today. So my advise is to use v12, not only for the function but also to be more up to date with your website.

Hope this helps.

BR Andre

Читать больше
Размещено От Andre E