Download & Extend

Node not displaying on term page

Project:Taxonomy Node
Version:6.x-1.0-beta3
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I have a vocabulary with an associated content type. Term Debian exists and produces page http://petermoulding.com/taxonomy/term/396
I created a node for the term using the edit link and the node created page http://petermoulding.com/debian
What I want is to have one page, not two. I installed the module because I expected the content of the node would be displayed on the term page, instead of the description, and the alias would apply to the term page. Is this possible? If yes, how do I do it?

If not, could the change be an enhancement to your module or an included sub module?

Comments

#1

I am switching my site to Node Auto Term to see how that handles the same problem.

#2

Category:bug report» feature request

The following code works for me.

<?php
/**
* Implementation of hook_link_alter().
*/
function taxonomynode_link_alter(&$links, $node) {
 
    foreach (
$links as $module => $link) {
       
        if (
strpos($module, 'taxonomy_term') !== FALSE && $link['title']) {
           
$tid = array(str_replace('taxonomy_term_', '', $module));           
           
$nid = _taxonomynode_get_nid_from_tid($tid);           
            if (!empty(
$nid)) {
               
$links[$module]['href'] = "node/$nid";
            }
        }
    }
}
?>
nobody click here