Download button for external link to open in a new windows
-
- Phoca Member
- Posts: 30
- Joined: 15 Jul 2011, 15:21
- Location: UK
- Contact:
Download button for external link to open in a new windows
How do you set the phoca download button to open external link in a new windows or new windows tab? Is it possible? Help from any one please
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button for external link to open in a new windo
Hi, if you are using IE, this depends on your settings in browser, not in the component
target _blank means new window or new tab but depends on settings in browser.
Jan
target _blank means new window or new tab but depends on settings in browser.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 02 Aug 2011, 14:39
Re: Download button for external link to open in a new windo
I am actually having a hard time finding that option.
Some files open in the parent window, and others download the file -
It's odd..
Some files open in the parent window, and others download the file -
It's odd..
-
- Phoca Newbie
- Posts: 4
- Joined: 02 Aug 2011, 14:39
Re: Download button for external link to open in a new windo
Okay, I need to point out in the php that needs to be checked.
This also works in the back link in Explorer as well.
So, edit the php:
com_phocadownload/views/file/view.html.php
on line 79
$tmpl['download_external_link'] = $params->get( 'download_external_link', '_self' );
Change to:
$tmpl['download_external_link'] = $params->get( 'download_external_link', '_blank' );
Then - in the Phoca File Editor for each file, Drop down "Direct Link" - No
In the Phoca Download Control Panel, Options, I have External Download Link set to "Blank"
Thanks for a great component! I hope this helps
This also works in the back link in Explorer as well.
So, edit the php:
com_phocadownload/views/file/view.html.php
on line 79
$tmpl['download_external_link'] = $params->get( 'download_external_link', '_self' );
Change to:
$tmpl['download_external_link'] = $params->get( 'download_external_link', '_blank' );
Then - in the Phoca File Editor for each file, Drop down "Direct Link" - No
In the Phoca Download Control Panel, Options, I have External Download Link set to "Blank"
Thanks for a great component! I hope this helps
- Jan
- Phoca Hero
- Posts: 48610
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button for external link to open in a new windo
Hi, thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project