diff -Naur search-result.tpl.php search-result.tpl.php --- search-result.tpl.php 2011-06-29 21:20:10.000000000 -0400 +++ search-result.tpl.php 2011-07-20 16:56:03.000000000 -0400 @@ -11,6 +11,7 @@ * Available variables: * - $url: URL of the result. * - $title: Title of the result. + * - $rendered: Field values as defined in the field type's custom display. * - $snippet: A small preview of the result. Does not apply to user searches. * - $info: String of all the meta information ready for print. Does not apply * to user searches. @@ -68,8 +69,10 @@ -
- +
+ +
+

>

diff -Naur search.css search.css --- search.css 2011-06-29 21:20:10.000000000 -0400 +++ search.css 2011-07-20 15:41:36.000000000 -0400 @@ -18,7 +18,7 @@ .search-results li { margin-bottom: 1em; } -.search-results .search-snippet-info { +.search-results .search-content-info { padding-left: 1em; /* LTR */ } .search-results .search-info { diff -Naur search.pages.inc search.pages.inc --- search.pages.inc 2011-06-29 21:20:10.000000000 -0400 +++ search.pages.inc 2011-07-20 16:42:30.000000000 -0400 @@ -129,6 +129,12 @@ } // Check for existence. User search does not include snippets. $variables['snippet'] = isset($result['snippet']) ? $result['snippet'] : ''; + // Provide rendered field data for custom display. + $variables['rendered'] = $result['node']->rendered; + $variables['view_mode_settings'] = field_view_mode_settings('node', $result['node']->type); + if ($variables['view_mode_settings']['search_result']['custom_settings']) { + $variables['classes_array'][] = "search-result-custom-display"; + } // Provide separated and grouped meta information.. $variables['info_split'] = $info; $variables['info'] = implode(' - ', $info);