Page 1 of 1

Phoca Download Search Plugin: Change of result-URLs

Posted: 17 Apr 2019, 17:13
by forensis
Im the admin of a website with a PDF archive.
The category overview with the descriptions of the download files must be publicly available. The download itself is only allowed to registered users (defined by: Maximum number of downloads per file = 10)

When I put the Phoca Download Search plugin on "Category View", I get all the search results from the descriptions, but the URLs of the results are all identical and lead back up to the archive page. Example: domainname/archive.
But you should lead to the respective anchor points on this page, eg. B .: domainname/archive#folder38 or domainname/archive#folder39 etc.
These anchor points lead to the respective integrated ("Regularlabs-") sliders, which expand the description text.

If I set the Phoca Download Search Plugin to "File View", I see that the links actually lead directly to the respective download file. Unfortunately, I always get the message: "PDF ## file: No rights to access this category available".
It does not matter if I am NOT REGISTERED or registered as a SUPERUSER.
I do not understand that. At least the superuser must have ALL rights - I think!

My question:
WHAT do I have to change / overwrite WHERE, so that the desired result URLs with the anchor points ... archiv # heft40 ... do appear? I would also take the trouble of making a manual change, because there are only two issues a year in this archive. In the meantime nothing changes and the search results are always identical.

Kind regards
fori

Re: Phoca Download Search Plugin: Change of result-URLs

Posted: 17 Apr 2019, 22:40
by Jan
Hi, when you get access rights error, check all the access rights:

- of the menu link
- of the category (access- groups, access rights - users)
- if the file (groups)

Is File View enabled?
Image

The link in search outputs are rendered here:
plugins\search\phocadownload\phocadownload.php
on line cca 286 and they call the router functions:

administrator/components/com_phocadownload/libraries/phocadownload/path/route.php

Jan

Re: Phoca Download Search Plugin: Change of result-URLs

Posted: 18 Apr 2019, 02:55
by forensis
Hello Jan,

you got me! The file view was of course not activated - but very consciously, because I originally did not want that you have to click twice to get the download.
Now it is so, because only so the search and find function works properly. Now I do not have to tinker with the URLs because every file has a page of its own.
Thank you very much for the help.
fori

(My second thread is also done with it!)

Re: Phoca Download Search Plugin: Change of result-URLs

Posted: 18 Apr 2019, 14:27
by Jan
Ok, great to hear it.

Jan