Feed NID and Title in search results ($info) field

deltab - August 9, 2009 - 08:37
Project:FeedAPI
Version:6.x-1.7-beta3
Component:Code (general)
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Is there a way I can show Feed: Feed Title type of a thing for Feed Items in search results? I want to show the same text that shows up in Node Links.

Thanks in advance.

#1

Aron Novak - August 10, 2009 - 07:23

Sure, there is a way.
http://api.drupal.org/api/function/hook_nodeapi/6
Take a look on $op = "search result": this is exactly what you need. So implement this hook in one of your modules and add the information what you need. To do this, you need to have basic coding skills.

#2

Aron Novak - August 18, 2009 - 09:02

Usually devel module helps to find out variable names.

#3

deltab - November 7, 2009 - 11:17

How do I modify search-result.tpl.php to get this effect?

 
 

Drupal is a registered trademark of Dries Buytaert.