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!
Search Thumbnails and Direct Links
-
- Phoca Newbie
- Posts: 2
- Joined: 05 Jul 2012, 14:49
-
- Phoca Newbie
- Posts: 2
- Joined: 05 Jul 2012, 14:49
Re: Search Thumbnails and Direct Links
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.
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));
} }
//}
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Search Thumbnails and Direct Links
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
Jan
If you find Phoca extensions useful, please support the project