Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • polsl
  • polsl's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 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'
));?>

Please Log in or Create an account to join the conversation.

Last edit: by polsl.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.
Coding is now a piece of cake
The following user(s) said Thank You: polsl

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.259 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started