Forum


List Manager Support

List Manager support
Forums
Public write access is disabled. Please login

Download link with image to a file in the list 06.12.2012 13:02

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

Re: Download link with image to a file in the list 06.12.2012 13:45

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
Moonsoft Team
www.moonsoft.es

Re: Download link with image to a file in the list 06.12.2012 13:48

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

Re: Download link with image to a file in the list 06.12.2012 21:17

[quote]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[/quote]

Re: Download link with image to a file in the list 06.12.2012 21:17

[quote][quote]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

Re: Download link with image to a file in the list 06.12.2012 21:20

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

Re: Download link with image to a file in the list 07.12.2012 13:36

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,
Moonsoft Team
www.moonsoft.es

Re: Download link with image to a file in the list 07.12.2012 14:11

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

Re: Download link with image to a file in the list 07.12.2012 19:59

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
Moonsoft Team
www.moonsoft.es

Re: Download link with image to a file in the list 09.12.2012 17:04

Hello,

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

Thank you!!!
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback