C:/drupal/modules/search/search-result.tpl.php File Reference

Go to the source code of this file.


Variables

print $url
print $title


Detailed Description

Default theme implementation for displaying a single search result.

This template renders a single search result and is collected into search-results.tpl.php. This and the parent template are dependent to one another sharing the markup for definition lists.

Available variables:

Default keys within $info_split:

Since $info_split is keyed, a direct print of the item is possible. This array does not apply to user searches so it is recommended to check for their existance before printing. The default keys of 'type', 'user' and 'date' always exist for node searches. Modules may provide other data.

<?php if (isset($info_split['comment'])) : ?> <?php print $info_split['comment']; ?> <?php endif; ?>

To check for all available data within $info_split, use the code below.

<?php print '

'. check_plain(print_r($info_split, 1)) .'
'; ?>

See also:
template_preprocess_search_result()

Definition in file search-result.tpl.php.


Variable Documentation

print $title

Definition at line 50 of file search-result.tpl.php.

print $url


Generated on Mon Jun 2 15:08:28 2008 for SimpleTest by  1.5.5