Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Attachment links/previews in fly views not working

Attachment links/previews in fly views not working 09 Sep 2015 00:55 #13444

  • polsl
  • polsl's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
Hello,
it seems that links for downloading files in fly views don't work.
At the fly layout edition view, in the field properties I set "Create a link" to true and select Download in Task/Action combo. After building the component, once the file is uploaded in form view, it cannot be downloaded in fly view, a plain text filename is displayed instead of a link.

Simple workaround is to replace generated JHTML for the field in fly template file with a JDOM call:
<?php echo JDom::_('html.fly.file', array(
'dataKey' => 'attachment',
'dataObject' => $this->item,
'height' => 'auto',
'indirect' => true,
'root' => '[DIR_SOME_PATH]',
'target' => 'download'
));?>
Last Edit: 14 Sep 2015 16:01 by polsl.
The administrator has disabled public write access.

Attachment links/previews in fly views not working 15 Oct 2015 13:06 #13595

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: polsl
Time to create page: 0.070 seconds

Get Started