Page 1 of 1

Feature Request - Direct Link by default

Posted: 05 Oct 2019, 20:52
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

Re: Feature Request - Direct Link by default

Posted: 10 Oct 2019, 15:57
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

Re: Feature Request - Direct Link by default

Posted: 11 Oct 2019, 10:41
by plamen
Thank you.
I've modified (with overrides) some code, will post it later after testing.

Re: Feature Request - Direct Link by default

Posted: 13 Oct 2019, 11:08
by Jan
Ok