The taxonomy link provides this -- when you click on a taxonomy term in a node, it leads you to a place where all nodes with that term are displayed. However, the full node is displayed. Not just the title.

How do I display just the title?
I did a search but did not find an answer.

Here is the code in taxonomy.module that displays the link of the taxonomy term in a node.

function taxonomy_link($type, $alnp = NULL) {
  if ($type == 'taxonomy terms' && $alnp != NULL) {
    $links = array();
    if (array_key_exists('taxonomy', $alnp)) {
      foreach ($alnp->taxonomy as $term) {
       $links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => strip_tags($term->description)));
      }
    }
    return $links;
  }

Any answers and hints about where to look would be appreciated.

Comments

dmnd’s picture

function taxonomy_term_path($term) {
  $vocabulary = taxonomy_get_vocabulary($term->vid);
  if ($vocabulary->module != 'taxonomy' && $path = module_invoke($vocabulary->module, 'term_path', $term)) {
    return $path;
  }
  return 'taxonomy/term/'. $term->tid;
}

Where should I look next to just return titles of nodes, not full nodes?

Thank you.

CFW’s picture

Did you find a solution for this? Or if someone has a solution... I'm using views 7.x-3.0-beta3.

dharani87’s picture

Enable taxonomy_term view in the views list
1.select page display
2.rowstyle : fields
3.Fields :node-title

CFW’s picture

Thanks dharani87, I now get a nice list of titles instead of the full node.