WebSite X5Help Center

 
Jim C.
Jim C.
User

Version 17 List of pdf files, file selected to appear on same page as list  en

Author: Jim C.
Visited 930, Followers 1, Shared 0  

Hi John S,

Ref your reply to Claudette:

Hello Claudette

Another way is to use iframes.

I have an example here : http://eksempelsite.dk/x52019test/evoluted.html

To the left a list. The list could be set to only show PDF-files. And to be sorted on the file-date so the newest would be on top.

Try to click on a PDF. You will then see this in the right-window and there is an icon shown, where user can download.

If you do it this way, then the only thing you have to do, is to upload the PDF to the folder. That's all.

No need to also open the x5 software, insert a link and then upload the project. All will be automatic.

Posted on the 04/08/2019 08:12:06 from John S.

I really like your example above, however I can’t figure how to do it. I would like a list of pdf files on the left and on clicking on a file, I would like it to appear on the right, but to have the list of files remain on show on the left see below:

Any help or advice would be appreciated.

Many thanks,

Jim

Posted on the
6 ANSWERS - 2 USEFUL
Incomedia
Stefano G.
Incomedia

Hi Jim.

If I understand correctly, having a list of PDF files would be quite easy to achieve really.

The easiest way would be to make use of a Download Button PluginApp which would allow the user to quickly download the file and you to keep track of this

Alternatively, you could upload the pdf files in a specific folder and then link them through Hypertext in whatever Text Object present in your website.

What you are requiring here is a little more complicated than that though.

To make it so that when you click on a link, the file is displayed elsewhere on the same page is not something you can do with the standard capabilities of the software, and would most surely require additional custom code to be added to your project.

The Staff cannot, unfortunately, offer support for such code, I'm sorry. I will, however, keep the topic open so that other users might eventually stop by and help you out with this

Thank you for your understanding

Stefano

Read more
Posted on the from Stefano G.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month RU
Jim C.
... ... I would like a list of pdf files on the left and on clicking on a file, I would like it to appear on the right,  ... ...  Any help or advice would be appreciated.

(It > En) ... currently I don't have the program, but I think that the simplest and most immediate method is to create the PDF list in a text object to which to assign the connection with opening in the showbox.
... or create the PDF list in a text object and place an HTML Code Object alongside an IFRAME (*) in which to open the linked PDFs ...
... both methods are very simple ...
... attention, to increase the compatibility of PDFs on various browsers, it would be better to use the URL via GoogleDocsViewer
(*) ... here my > ancient example  with IFRAME target to try ...
.

ciao

.

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

Hello Jim

Here is a maybe better example : http://eksempelsite.dk/x52019test/evoluted.html

It is made with iframes. Simply 2 iframes and a little text-object that hold the "Filelist" link.

To the left an iframe that "contains" a file viewer. The viewer is a single php-file that has the posssibility for  different settings.

It can be found here : https://www.evoluted.net/thinktank/web-development/php-directory-listing-script

The iframe to the right, is just a "target" iframe. It can be set up to initially show a user-guide.

If yoy click on the upper left "Listview" then the viewer will be shown in a new window. Here it is shown nearly full-width, and the extra columns shown can be sorted be clicking.

It can be set up if the viewer should only show the initial foleder or if also sub-folders is allowed. The example is set up so subfolders are allowed. It can also be set up which file types should be shown. It can even be set up if user is alllowed to upload files. 

Hope this helps you.

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

In the evoluted file, you have to change the target-settings from "_blank" to "youriframeid".

"yourframeid" should be the name you give the iframe to the right.

You could also via .htaccess files and an extra script, set access rights for different folders.

You can see an example here : http://eksempelsite.dk/x52019test/evolutedsec.html

In the index folder the PDF-files is only accessible for logged-in users belonging to certain groups.

In the "mappe01" folder all file types is "secured".

With expert-assistance I am enhancing this setup, and when finished I will eventually make the files downloadable and make an example and make a detailed description.

The script from Evoluted functions as it is now, and it this you see in the example.

Again :

Download the Evoluted script. Edit the settings. Set the target to your right iframe.

In X5 make a page containing two iframes besides each other.

In the left iframe set the URL to the downloaded file ( index.php )

In the right iframe ( that you give a name/id) you set an initial "welcome screen" as the URL.

That's it.

Read more
Posted on the from John S.
Jim C.
Jim C.
User
Author

Hi Stefano G,

Thank you for your feedback, I have already purchased the download button (which is excellent) and use it for some of the pdf files on one of my websites.

On that website, I have hidden folders that contain approx. 60 pdf files. I then created a text file listing all the pdf,s and created hyperlinks to open these files in an iframe. This works OK, but when I saw John S’s work at http://eksempelsite.dk/x52019test/evoluted.html I was really impressed and thought that it looked very professional and I would like to achieve something similar.

I appreciate that Incomedia staff cannot provide or offer support nor would I expect them to in order to achieve this.

Your feedback is as always, appreciated thank you for your time and keep up the excellent work.

Hi KolAsim,

Thank you for your excellent feedback, I have already tried out what you suggest (which works very well) and use that in my websites. Having seen what John S has managed to create looks professional and I am rather envious and would like to emulate that on my websites.

Your suggestion “attention, to increase the compatibility of PDFs on various browsers, it would be better to use the URL via GoogleDocsViewer” is good, I had never thought of doing that. I also had a look at your ancient example; I shall have a “play” with that.

Hi John S,

Thank you for your input this is exactly what I would like to achieve, at the moment I do not fully understand it all, but I shall enjoy trying to make it work.

I look forward to seeing your eventual enhanced setup and being able to download the files along with a detailed description.

Many thanks to everyone for all your time and effort.

Jim

Read more
Posted on the from Jim C.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Best User of the month RU
Jim C.
... ... ...  Hi KolAsim, Thank you for your excellent feedback, I have already tried out what you suggest (which works very well) and use that in my websites. ... ... 

... OK ... in case clarification is needed, let me know ...

ciao

.

Read more
Posted on the from  ‪ KolAsim ‪ ‪