Phoca download Search and Finder Results

Phoca Download - download manager
f16jack
Phoca Member
Phoca Member
Posts: 15
Joined: 28 Mar 2014, 20:00

Phoca download Search and Finder Results

Post by f16jack »

I have used Phoca Download to upload multiple pdf files to my site (about 100 or so).
On the front end these are all visible, and they each have a functional preview button next to them.
I have installed the phoca search and phoca finder plugins, and tried working with each.

I activated the search module, and made it visible on my Phoca display menu page (this is a Phoca Download » List of Files (Category View)).
(I also did this with smart search)

When I enter a word in the search box the search correctly shows all the pdf files who's titles contain the phrase.
When I subsequently click on one of the returned files, it merely takes me to the menu item from above (Phoca Download » List of Files (Category View)), showing the first page of several pages of files. It does not take me to the chosen file, does not open the file in preview, nor simply list the file (as a filter would) so that I could either preview or download it.

What settings do I need to change to achieve the behavior I seek - namely - when I click on a file I expect it to open in preview or to download.

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

Re: Phoca download Search and Finder Results

Post by Jan »

Hi, see similar posts in this forum, where this question is answered with the code which should be modified.

File view is not default view and as default it is not enabled, this is why the search outcome goes to category view.
(in short: PhocaDownloadRoute::getCategoryRoute method should be changed into PhocaDownloadRoute::getFileRoute in plugin php code)
Jan
If you find Phoca extensions useful, please support the project
Post Reply