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.054 seconds
Je suis vraiment impressionné par la puissance de COOK et encore plus admiratif de ton travail. A ce jour je crois que c'est ce que j'ai vu de plus abouti dans le domaine de la conception d'extension pour Joomla!
felichon (Forum)  

Get Started