Closed (works as designed)
Project:
Term Display
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2009 at 07:02 UTC
Updated:
21 Mar 2009 at 11:30 UTC
Okay, let me explain what I am trying to do first. I used to have a taxonomy vocabulary called 'tags' that used to be associated with content type of 'story' but I didn't want to display the tags any more. So, I started using this module. However, though the term display module hides the term from display, 'add to a tag' still shows up in the content type. But when I disable a taxonomy for any content type, even though the term display for that taxonomy vocabulary says 'hidden' the 'tags' starts displaying.
So I am stuck. :(
Comments
Comment #1
joachim commentedThis is more to do with how core drupal taxonomy works:
Removing a content type from a vocabulary doesn't remove that vocab's terms from nodes of that type.
In other words, your story node has some tags, future story nodes can't be tagged, but those tags remain.
That's core.
When term_display comes along, it naturally checks the node belongs to a content type for which its vocabularies apply. In other words, term_display looks at the node, finds its type, finds the vocabs that apply to that type, checks to see if it has settings for those vocabs, and then makes the changes for those settings.
We could skip the check for which vocabs apply, but that makes us do more work.
Really, core should do the right thing: http://drupal.org/node/68838 -- though whether the right thing is delete the terms from the node, or not load them, remains to be decided I guess.
I'm closing this as by design for now. Let's see what happens with that core issue.
In the meantime, the immediate fix to your problem would be either a) to go into the DB and delete those term associations, or b) reinstate 'story' to that vocab, and use a mass taxonomy edit module to remove the terms from all story nodes.