List Manager Forum

Download link with image to a file in the list

User moon_822 2012-12-06 13:02:32

I want to make in the list in a column / cell a link to a file. This link should be rendered as PDF file. Furthermore, my system 2 is speaking.

1) my field is set to "HTML editor"

2) <a href="../datenblatt/test.pdf" target="_blank">
<img src="../images/pdf-icon.gif" border=" " />
</a>
In the front end, the images are not displayed.


3) <a href="../datenblatt/test.pdf" target="_blank">Download</a> (without image)
When download link is error
- (Http://localhost/Jommla170/de/Datenblatt/test.pdf)
- 404 - category not found

- I will take away the "de", the download works
- (Http://localhost/Jommla170/Datenblatt/test.pdf)

Can you help me??

I send a couple of them could also Screeshots

Edited by moon_822 - 06.12.2012 13:04

Moonsoft support 2012-12-06 13:45:42

Hello,
seems at some point the system is adding the language prefix to the url, so both the image and the pdf are not properly located. Please try a couple of tests and comment the results:

1.- Try to insert that same code (image with the link) inside a default article, to confirm if it's working outside ListManager.

2.- Check your editor configuration to enable absolute paths and save again one record.


Thank you, regards

User moon_822 2012-12-06 13:48:59

Hello,
seems at some point the system is adding the language prefix to the url, so both the image and the pdf are not properly located. Please try a couple of tests and comment the results:

1.- Try to insert that same code (image with the link) inside a default article, to confirm if it's working outside ListManager.

YES its working

2.- Check your editor configuration to enable absolute paths and save again one record.

i will try it

Thank you, regards

Edited by moon_822 - 06.12.2012 13:49

Edited by moon_822 - 06.12.2012 13:51

User moon_822 2012-12-06 21:17:06

Hello,
seems at some point the system is adding the language prefix to the url, so both the image and the pdf are not properly located. Please try a couple of tests and comment the results:

1.- Try to insert that same code (image with the link) inside a default article, to confirm if it's working outside ListManager.

YES its working

2.- Check your editor configuration to enable absolute paths and save again one record.

i will try it

Thank you, regards

Edited by moon_822 - 06.12.2012 13:49

Edited by moon_822 - 06.12.2012 13:51

User moon_822 2012-12-06 21:17:16

Hello,
seems at some point the system is adding the language prefix to the url, so both the image and the pdf are not properly located. Please try a couple of tests and comment the results:

1.- Try to insert that same code (image with the link) inside a default article, to confirm if it's working outside ListManager.

YES its working

2.- Check your editor configuration to enable absolute paths and save again one record.

i will try it

Thank you, regards

Edited by moon_822 - 06.12.2012 13:49

User moon_822 2012-12-06 21:20:00

2.- Check your editor configuration to enable absolute paths and save again one record.

Error 404: http://localhost/Datenblatt/test.pdf

URL relativ
in the component LM see data
http://localhost/joomla170/Datenblatt/test.pdf (ok)

Frontend
http://localhost/joomla170/de/Datenblatt/test.pdf (Error)

Edited by moon_822 - 06.12.2012 21:26

Moonsoft support 2012-12-07 13:36:12

Hello,

In fact, List Manager gets the code generated from editor and doesn´t change anything. So if the editor gives
http://localhost/Datenblatt instead of http://localhost/joomla170/Datenblatt as absolute path, maybe the editor has some type of misconfiguration.

We've tested absolute path with 2 editors (TinyMCE and JCE), and using absolute path we couldn´t see any error. Also, we checked in CodeMirror adding absolute path in link, and we´ve got no problems.

What editor are you using?

Thanks. Regards,

User moon_822 2012-12-07 14:11:18

Hello

I use Editor - TinyMCE (absolute/relativ)

------------------------------------------------------------------------------
- relativ
in ListManager-field

* <a href="../datenblatt/test.pdf" target="_blank"> <img src="images/pdf-icon.gif" border=" " /> </a>
or
* <a href="../datenblatt/test.pdf" target="_blank"> <img src="../images/pdf-icon.gif" border=" " /> </a>

in Frontend
* no image
* http://localhost/SerWeMa/de/datenblatt/test.pdf (not found this File)

------------------------------------------------------------------------------
- absolute

it will automatically http://localhost/ for .. set

in ListManger-field
<a href="http://localhost/datenblatt/test.pdf" target="_blank"> <img src="http://localhost/images/pdf-icon.gif" border=" " /> </a>

to be lacking
../joomla170/..

------------------------------------------------------------------------------

I absolutely had to enter in so

<a href="http://localhost/joomla170/datenblatt/test.pdf" target="_blank"> <img src="http://localhost/joomla170/images/pdf-icon.gif" border=" " /> </a>

that works!!!!

------------------------------------------------------------------------------

what happens to the paths, if I install it on the server?
I need to create the same folder "joomla170"?

Edited by moon_822 - 07.12.2012 14:14

Moonsoft support 2012-12-07 19:59:35

Hello,
the proper way to handle this is to use relative paths, in order to migrate data without changes between domains. We have checked the difference between paths inside editor used by list manager, or inside a default article, and found there is a plugin (sef) responsible for making relative paths work ok, but it's not applying to the list information.



We've created a patch that you can download now at the customer section, which forces the same code to execute over LM fields, so you can use relative paths from your editor and images or links should be properly located from both back and front-end. Unzip and follow the readme instructions to install.

Hope this helps

Regards

User moon_822 2012-12-09 17:04:02

Hello,

Many thanks for your quick help. The patch was successful.

Thank you!!! :-D

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!