WebSite X5Help Center

 
Beverley B.
Beverley B.
User

How to add a list of downloadable files  en

Author: Beverley B.
Visited 702, Followers 1, Shared 0  

Hi

I am trying to add a list of files (PDFs) to my website, such as a list of polciies. I would like to arrange all of these in a table like fashion, with a rollover effect to make it clear that the files can be downloaded.

Is this possible in X5 evo?

TIA

Posted on the
5 ANSWERS
John S.
John S.
User

No - and yes

You could use the table object.

In the table you could have 2 columns an image and the link

The link is pure text that you give a link. The link is to the pdf-file.

Dependent on the browser the link will either opern and show the PDF or it will start the download.

Even when it is opened as pdf it will be able to be downloaded.

If you want to force download to start by clicking the link, you could make some lines in a html-object.

The table ( or a text-object) will require no code.

Read more
Posted on the from John S.
John S.
John S.
User

Here I have made something similar: https://bramminginfo.dk/bramny03/nyttige-links.html

Imagine that the links was to a PDF-fiile.

There is also the more sophisticated solution where you by using code, could have a list of PDF-files shown from a folder automatically.

It depends on how you use the PDF files ( how many and how often will they change or new created)

Read more
Posted on the from John S.
Axel  
Axel  
User
Best User of the month FR

Hello,

Something like that ?

here a simple code to do that.

<html>

<head>

<script type="text/javascript">
function Lien() {
i = document.Choix.Liste.selectedIndex;
if (i == 0) return;
url = document.Choix.Liste.options[i].value;
parent.location.href = url;
}
O
</script>

</head>


<body>

<form NAME="Choix">
<select NAME="Liste" onChange="Lien()">
<option VALUE="">Choisir une option
<optgroup label="Group 1"></optgroup>
<option VALUE="howto1.pdf"> File 1</option>
<option VALUE="howto2.pdf"> File 3</option>
<option VALUE="howto3.pdf"> File 3</option>
<optgroup label="Group 2"></optgroup>
<option VALUE="https://www.google.fr" > Google</option>
</select>
</form>

</body>
</html>

Add this code into a HTML object.

Enjoy!

Axel

Read more
Posted on the from Axel  
JJ. JUAG
JJ. JUAG
User

We use the direct display of the directory on the server and a small php program that lists everything in the directory.Since the pdf files and films are very large, they are uploaded directly with FileZilla and linked from the PRO project in wx5 as external files. (The advantage of the PRO project is smaller, the times for uploading are shorter +++).

JJ.

To see under:
https://www.plocher-produkte.ch/alle-pdf-und-video-plocher.html
https://www.pdf.plocher-produkte.ch/x-liste-root-pdf-plocher.php

and links under "Texte und Infos"

in .htaccess Filel the line
Options +Indexes
needed.

Read more
Posted on the from JJ. JUAG