We use the GSA module for our e-commerce site and the #1 request/complaint we've had is that there are no thumbnails in the search results. We have over 6,000 items so it's understandable our customers would want a little help finding the right item, the Search feature is probably the most important part of the site.
I'm very new to using/customizing our Google Mini (as well as Drupal) but I've been following the instructions here to add images to the search results:
http://code.google.com/apis/searchappliance/documentation/60/admin_searc...
I was able to edit the XSLT code as instructed and add the meta tag to my test item page, so the thumbnail shows up when I access the search page directly (see attached screenshot). I do have to manually append "&getfields=*" to the search URL, I'm not sure how to have that added automatically.
I'm not sure where to begin getting this to work within the GSA module. First I need "&getfields=*" to be included in the URL and then the meta tags need to be incorporated. I'd very much appreciate some guidance with this, I have no doubt it's a feature many others would love to have included in their search results as well!
Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2009-09-24 at 4.49.36 PM.png | 129.61 KB | OldAccount |
Comments
Comment #1
OldAccount commentedWe were able to incorporate the thumbnail images in a less complicated way, including some php in the search-result.tpl.php file. I guess this issue can be closed, unless it's a request that others have as well?
Comment #2
larskleiner commentedThe theme that's adding the meta tags will need to be overridden to get images or thumbnails displayed in the search results.
theme_google_appliance_add_meta_tags generates the meta tags for the html headers that in turn get crawled by GSA. This theme is what you'd need to override to get a thumbnail meta tag added to your node view:
You'll need to make sure $node->thumbnail holds the thumbnail image link.