Does NOT remove default taxonomy fields from content types
transliteration - June 6, 2008 - 18:09
| Project: | Content Taxonomy |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active (needs more info) |
Description
At D5 as soon as CT was installed, it removed all default taxonomy fileds from the content types associated with those vocabularies. Now it don't remove.

#1
The attached file brings content_taxonomy.module up to speed with Drupal 6 compatability as far as Coder is concerned and also adds in content_taxonomy_form_alter() for Drupal 6 to remove taxonomy fields from content types using the content_taxonomy CCK field.
#2
For completeness here's the patched content_taxonomy.module
#3
#4
in Drupal 6 it's not required to select any content type for a vocabulary. If someone doesn't want that the core taxonomy fields shows up, he can simply unselect the content type in the vocabulary settings. or does this have any disadvantage?
#5
I wonder whether the function ought to be included, though, since if a user does select the content type for the vocabulary then the vocabulary ought to be removed from the node edit form.
#6
I added a checkbox to the field settings with 'Hide default taxonomy fields on the node form' (in advanced settings). If at least one content taxonomy field per content type is set to this option, the default fields from the core taxonomy module get hidden. So, hiding of the default taxonomy fields is optional now :)
#7
Hey, nice one. Sounds good.
#8
Automatically closed -- issue fixed for two weeks with no activity.
#9
I'm using content taxonomy together with CCK and taxonomy. If I set the option 'Hide default taxonomy fields on the node form' it still keeps on showing the default taxonomy fields in the node form!
How is this possible?
For now I unchecked the content-type in the taxonmy vocabularies and for my required functionality that's fine but I would like it to work "proper" for future extra fuctionalities.
#10
just set this post to active again
#11
Hi!
In which folder is the content_taxonomy module installed?
under modules/content_taxonomy or sites/all/modules/content_taxonomy?
should be under sites/.., otherwise it doesn't work because of the hook invocation order