Does NOT remove default taxonomy fields from content types

transliteration - June 6, 2008 - 18:09
Project:Content Taxonomy
Version:6.x-1.0-beta4
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
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

joe-b - July 17, 2008 - 15:27

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.

AttachmentSize
content_taxonomy.patch 6.92 KB

#2

joe-b - July 17, 2008 - 15:29

For completeness here's the patched content_taxonomy.module

AttachmentSize
content_taxonomy_autocomplete.module.zip 4.45 KB

#3

joe-b - July 17, 2008 - 15:29
Status:active» needs review

#4

mh86 - July 17, 2008 - 16:11

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

joe-b - July 18, 2008 - 12:02

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

mh86 - July 22, 2008 - 11:58
Status:needs review» fixed

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

joe-b - July 23, 2008 - 13:24

Hey, nice one. Sounds good.

#8

Anonymous (not verified) - August 6, 2008 - 13:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#9

garbo - September 16, 2008 - 21:34
Version:6.x-1.x-dev» 6.x-1.0-beta3

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

garbo - September 16, 2008 - 21:35
Status:closed» active

just set this post to active again

#11

mh86 - September 17, 2008 - 06:27
Status:active» postponed (maintainer needs more info)

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

#12

jazic - October 14, 2008 - 04:43
Version:6.x-1.0-beta3» 6.x-1.0-beta4

Had this issue as well in beta4 and was able to resolve it by following mh86's advice (thanks!), and moving the content_taxonomy (and other user contributed modules) to the sites/all/modules folder.

I'm not sure if that warrants closing the issue, but for anyone else looking for a quick fix...

#13

garbo - October 14, 2008 - 18:05

Allright... I Will definetly do that then.

But why is there a difference?

#14

TempusFugit - October 28, 2008 - 19:17

Well I followed your advice, but choosing to hide the vocabulary field now eliminates all vocabulary fields!

#15

NikLP - October 29, 2008 - 14:24

In my opinion, the correct workflow of this module should be as below. I certainly have a use case where I have many vocabularies (for user profile nodes) of which I just want to override one widget using content_taxonomy

- Vocabulary X is enabled for content type A.
- Admin installs content_taxonomy and adds widget to A.
- c_t hooks into the node form and add the c_t widget, and takes away the taxonomy *for that vocab only*
- A now displays c_t widget for vocab X, and not the actual taxonomy.module widget
- Any remaining vocabs are displayed as per normal in the generic taxonomy widgets

This seems like the common sense approach, and should not be that hard I don't think?

#16

mh86 - December 27, 2008 - 11:41
Status:postponed (maintainer needs more info)» fixed

I close this issue because comment #15 is related to http://drupal.org/node/319724

#17

NikLP - December 30, 2008 - 17:46

I concur.

#18

System Message - January 13, 2009 - 17:50
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#19

vito_a - October 5, 2009 - 23:37

I've just posted a kind of solution and now it's possible to choose whether you want to display default taxonomy fields or not, http://vito.ho.ua/en/content/content-taxonomy-show-default-taxonomy-fiel...

#20

vito_a - October 5, 2009 - 23:39

oops, I see, sorry, I should be posting it there http://drupal.org/node/319724

#21

gattoplano - October 28, 2009 - 11:00
Status:closed» active

Hi, sorry to re-open this ticket but I just enabled this module for using it instead of the normal taxonomy selection.
I use a single vocabulary for the "evento" content type, but this module doesn't override the default selection. I still see both of them and no way I can disable the default.

Am I doing something wrong?

AttachmentSize
error-content-taxonomy.png 7.88 KB
 
 

Drupal is a registered trademark of Dries Buytaert.