Tuesday, 29 May 2018
  24 Replies
  8.7K Visits
0
Votes
Undo
  Subscribe
Hi Geraint,
We have already talk about this few months ago but this time it's quite urgent for us.
We need the possibility to add a text for the link created by the eldownload custom field.

For example : the file is very_important_file.pdf and we want the text for the link be very important file (PDF, 3Mo, 15 pages).

Do you think this could be achieve shortly (in few weeks ?)

Thanks for your work on this ;-)
Accepted Answer
After hours : the links are good now ^^
Sorry Nicolas - I'm looking at it now.

Review EasyLayouts. If you use EasyLayouts please post a rating and a review at the Joomla! Extensions Directory.
https://extensions.joomla.org/extension/easylayouts/

Found the problem - the output of link is being cached in the web browser.

We should be able to eliminate this by a modification to the file

plugins/fields/eldownload/gwejson_downloadfile.php

by adding


header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

just before the

$byteswritten = readfile($file);

at the end of the file

Review EasyLayouts. If you use EasyLayouts please post a rating and a review at the Joomla! Extensions Directory.
https://extensions.joomla.org/extension/easylayouts/

Hi,
I have :

  • I have change the code and clear all the cache of the website.
  • Select files in a articles
  • Change one time : OK, 2 times : OK, three time : not OK the files are not the good one when I try to download.
Accepted Answer
After hours : the links are good now ^^
  • Page :
  • 1
  • 2
There are no replies made for this post yet.

If you use EasyLayouts please post a rating and a review at the
Joomla! Extensions Directory.