Feature Request - Direct Link by default

Phoca Download - download manager
plamen
Phoca Enthusiast
Phoca Enthusiast
Posts: 71
Joined: 16 Mar 2014, 13:23

Feature Request - Direct Link by default

Post by plamen » 05 Oct 2019, 20:52

Hi Jan,

Is it possible 'Direct Link' to be YES by default for all new files added in the component? (selected in some General Options).
Especially for PDF files (for which I'm using PD).
And Direct Link to open pdf-s in new browser tabs - target _blank (this could be option in settings also).
Waiting for your comments.

Regards

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 41768
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request - Direct Link by default

Post by Jan » 10 Oct 2019, 15:57

Hi,

open this file:
administrator\components\com_phocadownload\models\forms\phocadownloadfile.xml
on line cca 42 (directlink parameter) change
FROM:

Code: Select all

default="0"
TO:

Code: Select all

default="1"
target _blank - I will take a look at it but I think, this should be modified directly in the code, as target _blank does not make any sense for direct downloading of files as this action should not open any panel but just directly open the OS window to download the file :idea:

Jan
If you find Phoca extensions useful, please support the project

plamen
Phoca Enthusiast
Phoca Enthusiast
Posts: 71
Joined: 16 Mar 2014, 13:23

Re: Feature Request - Direct Link by default

Post by plamen » 11 Oct 2019, 10:41

Thank you.
I've modified (with overrides) some code, will post it later after testing.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 41768
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request - Direct Link by default

Post by Jan » 13 Oct 2019, 11:08

Ok
If you find Phoca extensions useful, please support the project

Post Reply