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.073 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started