I wanted to display extra info too. I looked at the variable and its attributes returned by the search and as far as I could see, you only get the url and the title.
(I used the {$var|show} tag to investigate).
I suppose you can fetch content item by item, but that's propably not that fast.
X+
> How do I return more information from an object returned in
> the search.tpl template.
>
> I want to display more than the name and uri to the object.
> For example displaying the intro field underneath.
> > Any help would be appreciated.
> How do I return more information from an object returned in
> the search.tpl template.
>
> I want to display more than the name and uri to the object.
> For example displaying the intro field underneath.
> > Any help would be appreciated.
I suggest you create a new viewmode for content objects, create a viewmode in design/standard/override/templates/content/view/ for all classes you have, for instance search_class_1.tpl and search_class_2.tpl and add the template code to it. For instance if you have attributes called intro and body for class 1, add: