Page 1 of 1

Disable download

Posted: 17 Sep 2015, 19:19
by PowerJoe
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

Re: Disable download

Posted: 18 Sep 2015, 19:00
by Jan
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

Re: Disable download

Posted: 18 Sep 2015, 20:13
by PowerJoe
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

Re: Disable download

Posted: 18 Sep 2015, 22:09
by christine
Hi Joe,

Try this:
div.pddownloadrc {
display:none;
}
kind regards, Christine

Re: Disable download

Posted: 18 Sep 2015, 22:13
by PowerJoe
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

Re: Disable download

Posted: 18 Sep 2015, 22:31
by christine
Hi Joe,

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');
kind regards, Christine

Re: Disable download

Posted: 21 Sep 2015, 14:51
by PowerJoe
No that didn't work for me Christine..