• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Direct Download Option For RSFiles Module

Direct Download Option For RSFiles Module 9 years 5 months ago #28931

Hi folks,

Is it possible for the RSFiles module to have a direct download option? I want users to download files directly rather than having to visit individual pages for each file they click.

Any assistance would be much appreciated!
The administrator has disabled public write access.

Direct Download Option For RSFiles Module 9 years 5 months ago #28936

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
This is a configuration option and you can find it here:

Head over to Components > RSFiles! > Settings - General tab and change Direct download to Yes.

http://www.rsjoomla.com/support/documentation/view-article/356-settings.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Direct Download Option For RSFiles Module 8 years 9 months ago #31437

  • john.hubickey
  • john.hubickey's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Thank you received: 2
The answer given does not work. I have set direct download and this works in the component but not for the module.
The administrator has disabled public write access.

Direct Download Option For RSFiles Module 8 years 9 months ago #31458

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Yes, it seems that I misunderstood what gobbly2100 needed.

A solution would be to create a template override for RSFiles! module and change the way it renders the URL.

As a guideline, in the foreach loop of the \modules\mod_rsfiles_folder_content_viewer\tmpl\default.php file

insert the following line to grab the direct link:
<?php $download = rsfilesHelper::downloadlink($item,$item->fullpath); ?>

and instead of this :
href="<?php echo JRoute::_('index.php?option=com_rsfiles'.($item->type == 'folder' ? '&folder='.$item->fullpath : '&layout=download&path='.$item->fullpath).modRsfilesFolderContentViewerHelper::getItemid($params),false); ?>"

use this:
href="<?php echo $download->dlink; ?>"
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: stephen_sibelman
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!