Hi guys,
I'd like to disable the download option. I work with PDF formats and I want users to not be able to download the pdf's.
I know how to disable the download button but I'd like to have the download option etc in modal view and/or new tab aswell.
Is this possible? If so, how?
I'm looking for a quick reply.
Joe
Disable download
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Disable download
Hi, for now there is no such option, so this needs to be customized:
1) disable it per CSS - display:none style for whole button
2) or directly in the html code:
components/com_phocadownload/views/category/tmpl/ ...
Jan
1) disable it per CSS - display:none style for whole button
2) or directly in the html code:
components/com_phocadownload/views/category/tmpl/ ...
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 37
- Joined: 03 Sep 2015, 19:00
Re: Disable download
Hi Jan,
Thanks for the quick reply.
Yes concerning CSS/HTML I know what to do.
The thing that gets me stuck is the blue div within the modal view of a PDF which gives you the option to print/download etc.
I need that to be removed.
Any idea how?
Joe
Thanks for the quick reply.
Yes concerning CSS/HTML I know what to do.
The thing that gets me stuck is the blue div within the modal view of a PDF which gives you the option to print/download etc.
I need that to be removed.
Any idea how?
Joe
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: Disable download
Hi Joe,
Try this:
Try this:
kind regards, Christinediv.pddownloadrc {
display:none;
}
-
- Phoca Member
- Posts: 37
- Joined: 03 Sep 2015, 19:00
Re: Disable download
Hi Christine,
I know that. This is not the problem. The problem is in the modal view. You get this blue area where you can print and download and some more functions.
This needs to go.
Joe
I know that. This is not the problem. The problem is in the modal view. You get this blue area where you can print and download and some more functions.
This needs to go.
Joe
-
- Phoca Hero
- Posts: 2857
- Joined: 28 Nov 2010, 17:20
Re: Disable download
Hi Joe,
may be there?
com_phocadownload_site_views_category_view.html.php
kind regards, Christine
may be there?
com_phocadownload_site_views_category_view.html.php
Code: Select all
$this->t['buttonpr']->set('modal', true);
$this->t['buttonpr']->set('methodname', 'modal-button');
-
- Phoca Member
- Posts: 37
- Joined: 03 Sep 2015, 19:00
Re: Disable download
No that didn't work for me Christine..