Using Phoca Plugin

Phoca Download - download manager
redelevencreative
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 07 Jun 2016, 16:23

Using Phoca Plugin

Post by redelevencreative »

Hi there

I am using the Phoca download plugin which enables me to place ID's of files within articles. These files are set to REGISTERED view only. Here's what happens..

1. User clicks on link in article
2. If not logged then go to the login page.
3. After logging in (or registyering) they are then thrown back into what looks like a category page with all the files on.

Is it possible for point 3 to actually thrown them back into the ARTICLE..as opposed to the component category page?

Many thanks
Gav
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Using Phoca Plugin

Post by Jan »

Hi, no :-( Generally, the component cannot go back to article as the component does not know in which article to go. When you click on download button in plugin (in article) then you go to component which then manages all the rights, etc. But Phoca Download component is not able to somehow influence the article/other component (in this case com_content). In the component, it is programmed, that if user cannot access some file, he/she needs to login, then it will be redirect back. But this cannot be used for article as this is another component. So the only way is to customize directly the components (article and download - so the will somehow interact when managing rights) :idea:

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