By dmnd on
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
here is the code for taxonomy_term_path
Where should I look next to just return titles of nodes, not full nodes?
Thank you.
Did you find a solution for
Did you find a solution for this? Or if someone has a solution... I'm using views 7.x-3.0-beta3.
Views can do that!!
Enable taxonomy_term view in the views list
1.select page display
2.rowstyle : fields
3.Fields :node-title
Thanks dharani87, I now get
Thanks dharani87, I now get a nice list of titles instead of the full node.