Hide Download Button?

Phoca Download - download manager
grooveagent
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 31 May 2011, 21:11

Hide Download Button?

Post by grooveagent »

Hey all,

I'd like to simply have the link to the download via the name of the file and not show the big green download button. I thought maybe if i set "display downloads" to "no" it would disappear but I can't seem to get rid of it.

Any suggestions?

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

Re: Hide Download Button?

Post by Jan »

Hi, there is no option to hide download button, this needs to be customized in the code, or you can set own layout where the button will be not displayed.

Jan
If you find Phoca extensions useful, please support the project
f16jack
Phoca Member
Phoca Member
Posts: 18
Joined: 28 Mar 2014, 20:00

Re: Hide Download Button?

Post by f16jack »

Hi Jan,

I've looked in your documentation and tried modifying the layout, but cannot remove the "Download" button in the category view.

2nd challenge: trying to ensure that the users get the option to view a document before being forced to download it. You reference enabling the "icon" view, but I don't see that anywhere in the options in Phoca Download.
Thanks.
f16jack
Phoca Member
Phoca Member
Posts: 18
Joined: 28 Mar 2014, 20:00

Re: Hide Download Button?

Post by f16jack »

To Hide the Download Button:

public_html/components/com_phocadownload/views/category/tmpl/default_files.php
find the line:
echo '<div class="pd-buttons">'.$pdButtonDownload.'</div>';
(should be about line 367)
Comment this out.
//echo '<div class="pd-buttons">'.$pdButtonDownload.'</div>';
The Download button will disappear
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide Download Button?

Post by Jan »

Hi, thank you for the guide.

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