I don't know if this is an intended feature, but it seems after the node is created and the title used to create the term (if the term doesn't already exist in the vocabulary), subsequently the term is not associated with the node.

Is this the desired behavior?

I was under the impression that the node should be associated with the term and that is how most people would use it.

Comments

Sean-Khan’s picture

NAT is a connection used for this that is separate from taxonomy, although I agree that NAT settings should have an option to add the term automatically to the NAT node. This is needed for example if you want to make a view of all items of that taxonomy term, and having the original node as 'home' link as part of the view.

I couldn't find an option to do this using rules either.

johngriffin’s picture

As a workaround for the views situation that Sean-Khan described above, you could use a term_id argument to the view and provide a default argument of the following php code:

  $node=node_load(arg(1));
  if($node){
    foreach($node->nat as $term){$terms[]=$term->tid;}
    return implode('+',$terms);
  }
  else {return;}

That should insert the NAT term of the node being viewed as an argument. No need for the multiple tids in the code pasted above for standard NAT use, so that could be removed in most cases.

tribsel’s picture

i need this feature too. ;) btw i think Taxonomy node does this - creates node for taxonomy term and asociates node with that term.

arlinsandbulte’s picture

Status: Active » Closed (duplicate)

Duplicate of #155411: Can the associated node be assigned the taxonomy term?, I think.

And for the record, I am not in favor of assigning the taxonomy term to the NAT node that generated it.
IMO, this creates a parent-child paradox.
See my comment here: http://drupal.org/node/155411#comment-2661204

InterestingJohn’s picture

You just saved my sanity with this snippet! I was going mad, until I realized that my desired result wasn't occurring because NAT wasn't linking the node and the term together. A thousand thanks for this info!