Closed (fixed)
Project:
Vertical Tabs
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2010 at 18:25 UTC
Updated:
28 May 2012 at 17:17 UTC
After several days of trying to figure out why Vertical Tabs was not displaying Vocabularies, I discovered that it depended on the type of vocabulary. If I have 3 vocabularies that are all 'tags', then the Vocabulary section does not display in Vertical tabs. If I change one of the vocabularies to 'multiple select' then the vocabulary NOW shows up in Vertical tabs.
This was performed on a new install of D6.17 with nothing else installed other than Vertical Tabs.
Can anyone else confirm that this really is happening??
Comments
Comment #1
hefox commentedIs the vocabulary section actually a fieldset when all tags? Doubt it
so no matter how many tags, that'd all be under 'tags', aka counting as one. adding the mutli select brings up count($form.. ) to 2, ie making it a fieldset. Vertical tabs works on fieldsets.
hook_form_alter $form['taxonomy'] into a fieldset and it should work :).
Or if the site doesn't have much content, you could try out content_taxonomy (taxonomy cck field) and fieldgroups.
Comment #2
gausarts commentedConfirmed, same behavior for tags only, no fieldset, no vertical tabs.
Comment #3
hefox commentedHm, being that it's not vertical tabs fault, as vertical tabs works as designed, and it doesn't seem like something vertical tabs should be changing?, marking it as fixed support request. Of course, re-open if ya disagree.
Comment #4
dave reidYep, you got the same behavior for taxonomy fields in D7 before they were converted to entities.
Comment #5
mkinnan commentedThen does the problem actually lie with drupal core? So, if I had 2 or more 'tag' vocabularies, drupal core should recognize the vocabulary section as a fieldset but it doesn't. Then this causes vertical tabs not to recognize the vocabulary section. Is that what is happening?
Comment #6
dave reidIf you have multiple tag vocabularies, taxonomy.module puts them in $form['taxonomy']['tags'][vid]. All other vocabularies go into $form['taxonomy'][vid]. So if you have two tag vocabularies, count($form['taxonomy']) is not > 1.
Comment #8
giorgoskis there any reason why we can't be a little flexible
and allow any two vocabularies (TAG or NOTAG) to be in a vertical tab ?
I am running in a situation where I have 6 TAG vocabularies that can't get in their own vertical tab and clutter the interface
of course there is workarounds like taxonomy_role or taxonomy_defaults and creating one extra NONTAG vocabulary that users can't access or can't see (respeectively) but ... why is't vertical tabs provide such functionality ?
Comment #9
dave reidIt's controlled by core. It shouldn't be vertical tabs job to 'fix' core. Just convert fieldsets.
Comment #10
amanire commentedThe Content Taxonomy module should be a viable workaround if you don't mind adding an extra CCK field and db table. You just need to to put the corresponding taxonomy CCK field in a group for it to appear as a fieldset.
Comment #11
giorgoskAnother workaround would be http://drupal.org/project/content_taxonomy_term_list
but I still would prefer this feature from vertical tabs since the workarounds have their limitations
Comment #12
julianmancera commentedHi all,
Is there any coding fix for this isuue, I just try with the hook_form_alter to change the taxonomy to a fielset:
It does convert the taxonomy into a vertical tab but the category selector disapears, not sure why. I compared my form array with one that already has the vertical working and it is the same but the vocabulary content is not rendered.
Any ideas?
Thank you
Julian Mancera
Comment #13
julianmancera commentedI found it you should make a custom module and in a hook_form_alter put
Julian Mancera