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
Results with phoca download search plug-in
-
- Phoca Newbie
- Posts: 1
- Joined: 23 Oct 2013, 07:29
-
- Phoca Newbie
- Posts: 5
- Joined: 29 Jun 2013, 10:19
Re: Results with phoca download search plug-in
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!
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!