Returning first image of node with search results?

Dabitch - September 16, 2007 - 11:40
Project:SQL Search (Trip Search)
Version:4.7.x-1.6
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello

I might have dreamt this, since I can't find it now, but I thought I had seen someone's wee hack to trip_search that returned the first image of a post with the search results. If it was just a dream, it was a neat one as that could be really cool. For a feature I suggest (if possible) - returning the first image in a node , and the ability for the administrator to set which types of nodes and/or which taxonomy of nodes that will do this.

Many site may find this useful, especially if one in the admin area could set which node types and/or taxonomy terms that will do this. I'm sugegsting the taxonomy as some sites use the same node type for everything and then section things with terms instead, so 'photos from trips'" might have it's own term and that one would be the one they want the image returned for, not "all blog posts" or similar.

Course, since images may come in a hundred different sizes I'm thinking that the size must be small in the search result, like 200*200 or 100*100 or similar (and perhaps that too could be set in admin?)

 
 

Drupal is a registered trademark of Dries Buytaert.