Phoca Gallery Search Plugin

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
FinallyInSeattle
Phoca Member
Phoca Member
Posts: 17
Joined: 02 Jan 2009, 10:48

Phoca Gallery Search Plugin

Post by FinallyInSeattle »

I've installed the Search Plug-in on my site and it does find keywords in my image titles. However, when I click on the link from the search results page, I'm brought to the category page that the image belongs to instead of the image itself. Also, if the selected image doesn't appear on the first page of that category (pagination set to 15), you can't get to it because the previous/next options aren't available.

Normal URL for the category: "http://localhost/HiddenRidgeGallery/ind ... 5&Itemid=6"

URL in Search results: "http://localhost/HiddenRidgeGallery/ind ... il_acrylic"

Can you provide some assistance?

Thanks in advance!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Search Plugin

Post by Jan »

Hi, I didn't do this plugin so I cannot say what is wrong? But I think this can be the problem of Itemid (settings = Itemid) and this search results dont get any itemid so it can come to problems... I hope I find time for doing hack for Itemid in this plugin ...

Jan
If you find Phoca extensions useful, please support the project
User avatar
rcalvi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 18 Feb 2009, 10:58

Re: Phoca Gallery Search Plugin

Post by rcalvi »

in effect also to me when I click on the link from the search results page, It goes to the category page that the image belongs to instead of the image itself...
I tried to look at the file: /plugins/search/phocagallery.php (at line 175)
and replace:
$list1[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=category&id='.$item->catslug );
With:
$list1[$key]->href = JRoute::_('index.php?option=com_phocagallery&view=detail&catid='.$item->catslug.'&id='.$item->slug );

it opens the picture found but not in the correct way (not in a popup...) and without the possibility of a download
could somebody look at that file and understand something?

Rob
User avatar
rcalvi
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 18 Feb 2009, 10:58

Re: Phoca Gallery Search Plugin

Post by rcalvi »

I tried to to apply some hack as Jan used in random image module but the only thing i could do is open the founded Photo in a new tab as Picture to download...
file: /plugins/search/phocagallery.php (at line 175):

$siteLink ='index.php?option=com_phocagallery&view=detail&catid='.$item->catslug.'&id='.$item->slug.'&tmpl=component&phocadownload='.$tmpl['detailwindow'].'&buttons='.$detail_buttons;
$list1[$key]->href = JRoute::_( $siteLink );

Any ideas for a Pop-Up window? :x
Post Reply