Page 1 of 1

Phoca Gallery Search Plugin

Posted: 18 Jan 2009, 06:48
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!

Re: Phoca Gallery Search Plugin

Posted: 20 Jan 2009, 01:26
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

Re: Phoca Gallery Search Plugin

Posted: 18 Feb 2009, 11:17
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

Re: Phoca Gallery Search Plugin

Posted: 19 Feb 2009, 09:20
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