By freelylw on
Whenever there is more than 1 taxonomy for a content type, the taxonomy will be showing inside a js fiedset which call 'Vocabularies'.
I don't know where I can change this title of 'Vocabularies' or where can disable this fieldset ?
I prefer the taxonomy not showing inside the fieldset .
Thanks
Comments
formdefaults
I guess there are better ways, but the formdefaults module (10 KB) would allow you to customize the fieldset label.
'String Overrides' module
Same here. Other options are:
'Formfilter' module at http://drupal.org/project/formfilter
'String Overrides' module to edit the fieldset label 'Vocabularies'. http://drupal.org/project/stringoverrides
'Jammer' module to remove or hide other parts of forms at http://drupal.org/project/jammer
Solution for you...
Follow the steps on this page that I just wrote: http://drupal.org/node/561078
Thank you
Thank you Chris! How would you apply a specific name based on Content Type? E.g.: Story Categories, Page Vocabularies, etc...
Also, would it be possible to remove the fieldset alltogether (often it does not add anything meaningful to the form really...)?
To apply a specific name
To apply a specific name based on content type, you would edit the code in vocabularies_fieldset_to_categories_fieldset.module so that it's similar to the following:
As far as removing the fieldset altogether, you have a couple options (maybe more)...
A) you could uncheck the content type from the vocabulary's settings at admin/content/taxonomy
B) you could set the #access to 0 via an additional line in the custom module, or in that content type's template file (like a file named mycontenttype.tpl.php if your content type is called 'mycontenttype').
If you decide to go with option B, and decide to do it by putting an additional line in the custom module, the module's code could look like this:
answer to original question
I recently wanted to suppress the taxonomy fieldset on a node form and simply did the following:
But how to remove the fieldset, not disable it?
I do believe the OP was wanting to MOVE the taxonomy selectors OUT of the fieldset, not disable the whole thing. He didn't want it in a collapsible fieldset, but each one its own. I want this too as I might have a Taxonomy that is "Service Type" and then another Taxonomy for Country/City. I'm sure there is a way to move stuff around in this form_alter function?
makes sense
It's been almost a year since my post and I forget what my objective was at the time, but I do understand the OP's original intent. It's possible I wanted more control of where the taxonomy field appeared and simply copied the form element, unset the fieldset and moved the field where needed.
So yeah, what you ask should be perfectly doable. You just need to examine the $form array and proceed.