I have installed the liquid wiki module and have multiple pages created for members to edit. I dont want to display the author or posting date on these nodes (or all nodes in search if this is a problem).

Is there a way to do this or do I need to edit code somewhere?

Thanks,

Comments

pwolanin’s picture

You need to override this theme function:

http://api.drupal.org/api/5/function/theme_search_item

Something like this in template.php from my site (only shows author on forum or blog posts):

function phptemplate_search_item($item, $type) {
  $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>';
  $info = array();
  if ($item['type']) {
    $info[] = $item['type'];
    if (($item['type']=='forum topic') || ($item['type']=='blog entry')) {
      if ($item['user']) {
        $info[] = $item['user'];
      }
      if ($item['date']) {
        $info[] = format_date($item['date'], 'small');
      }
    }
  }

  if (is_array($item['extra'])) {
    $info = array_merge($info, $item['extra']);
  }
  $output .= ' <dd>'. ($item['snippet'] ? '<p>'. $item['snippet'] . '</p>' : '') . '<p class="search-info">' . implode(' - ', $info) .'</p></dd>';
  return $output;
}

---
Work: BioRAFT

paulcoghlan’s picture

Thanks, works perfectly, much appreciated.

Paul