Feature Request - Direct Link by default

Phoca Download - download manager
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Feature Request - Direct Link by default

Post by plamen »

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: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request - Direct Link by default

Post by Jan »

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 Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: Feature Request - Direct Link by default

Post by plamen »

Thank you.
I've modified (with overrides) some code, will post it later after testing.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request - Direct Link by default

Post by Jan »

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