Page 1 of 1

Search Thumbnails and Direct Links

Posted: 05 Jul 2012, 15:14
by scarecrow359
Hey,
I have a couple of questions, that I can't find the answers to on the Forums:

1. Is there a way to make thumbnails of images show up in search (the last forum post on this did not solve this issue for me, as they are all very old)

2. is there a way to link search results directly to images? Right now they link to categories and I desperately want to change this.

Thanks!

Re: Search Thumbnails and Direct Links

Posted: 05 Jul 2012, 16:54
by scarecrow359
EDIT: Still a problem - in this new format the image is only available in no-popup, therefore I cannot show the image description alongside the image, is there a way to fix this?

This code added in line 222 of /plugins/search/phocagallery/phocagallery.php
(original code is commented) links to the image directly from search. I was having a bracket issue that was causing this to fail. But it is now fixed.
I'm still looking into thumbnails, if anyone could help me with that you will have my undying gratitude.

Code: Select all

 else {
						//$listImages[$key]->href = JRoute::_(PhocaGalleryRoute::getCategoryRoute($value->catid, $value->catalias));
						if ($paramsC->get('detail_window') == 7)  {
  							 $listImages[$key]->href = JRoute::_(PhocaGalleryRoute::getImageRoute($value->id, $value->catid, $value->slug, $value->catalias));
						}
						else {
    						$listImages[$key]->href = JRoute::_(PhocaGalleryRoute::getCategoryRoute($value->catid, $value->catalias));
							}                  }
					
					//} 

Re: Search Thumbnails and Direct Links

Posted: 07 Jul 2012, 14:42
by Jan
Hi, the search outcome is rendered by Joomla! so it needs to be customized there (displaying the thumbnails in search outcome). Try to see this forum, there were some guides describing this.

Jan