Results with phoca download search plug-in

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
topette
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 23 Oct 2013, 07:29

Re: Results with phoca download search plug-in

Post by topette »

It worked for me in second line like:

$listFiles[$key]->href = "http://mywebsite.com/phocadownload/".($ ... filename2);

But i need to open in "_blank" and i don´t know hot to add
Mortadelo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 29 Jun 2013, 10:19

Re: Results with phoca download search plug-in

Post by Mortadelo »

I will show you how i do it:

File View is ON to my website so when i access a file link is like this: website.net/menuname/file/fileid-filenamealias.html

phocadownload.php

line 243:

' "2" AS browsernav, c.id as catid, c.alias as catalias, a.id as articleid, a.alias as articlealias');

after line 273 add this:

$listFiles[$key]->href = "/menuname/file/".$value->articleid .$a = "-" .$value->articlealias .$b = ".html";

Remove .$b = ".html if you dont have .html to your pages!

This worked for me!
Post Reply