Hi.

It seems to me that vt_default breaks the normal (collapsible or collapsed) behavior of cck fieldgroups. If I enable vt_default it seems to turn all cck fieldgroups into vertical tabs, regardless of what I set in the fieldgroup settings (collapsible, collapsed, etc). I'm trying to find a way to make vt_default work with the insert module and solving this could be a way to make that work.

Any ideas?

Comments

crea’s picture

Project: Vertical Tabs Default Tab » Vertical Tabs
Category: bug » support

VT Default Tab only moves content that is not fieldset itself into default fieldset. What you observe is regular behavior of Vertical Tabs.

einkahumor’s picture

Title: vt_default breaks regular cck fieldgroups » Vertical Tabs break regular cck fieldgroups
Category: support » bug

Sorry, you're absolutely right. I think this should be a bug report though since there is a fieldgroup setting where you can select style ("always open", "collapsible", "collapsed" or "verical tab") but no matter how I set this, my groups are always rendered as Vertical Tabs. I've tested this using Garland with the latest stable release of Drupal, CCK and Vertical Tabs and also the latest dev of Vertical Tabs. Can anyone Shed some light on how to fix this? I'm no code ninja so any help would be greatly appreciated.

hefox’s picture

Try unchecking "Include new fieldsets in vertical tabs by default." at admin/settings/vertical-tabs ?

einkahumor’s picture

Heh. Well that works, thanks. Shouldn't this setting (when it is checked) make new fieldgroups have their style setting set to Vertical Tab instead of just overriding whatever is set?

hefox’s picture

fieldgroups is 'just' a add on module for CCK that adds fieldsets around cck fields.

Fieldsets are what this checkbox is for, not just specifically fieldgroups.

So to this option an non-something-else fieldgroup is a 'new/unconfigured' fieldset.

I believe vertical tabs can still be configured using form module, so I'd suggest using that to exclude fieldsets/fieldgroups. (I tend to just do it in code these days, but I'm weird).

einkahumor’s picture

Title: Vertical Tabs break regular cck fieldgroups » Don't require "Include new fieldsets in vertical tabs by default."
Project: Vertical Tabs » Vertical Tabs Default Tab
Category: bug » feature

This issue has gone a full circle and is back to VT_Default. I've finally figured out that the real problem is that if I uncheck the "Include new fieldsets in vertical tabs by default." checkbox in admin/settings/vertical-tabs then I get no Default Tab behaviour. I can set the Default Tab title in admin/content/node-type/sometype but nothing happens until I recheck "Include new fieldsets in vertical tabs by default.". This is bad because I really need to use a collapsed fieldset within my Default Tab (for an imagefield with insert).

I think we can all agree that this isn't desirable behavior. I know almost nothing about php and javascript so I'm afraid I can't solve this on my own. Any ideas on how to fix this?

hefox’s picture

As mentioned before, have you tried http://drupal.org/project/form to configure vertical tabs? (There is a conflict between form and views, but disable form after using it and the vertical tab settings keep).

In most of the sites I've used vertical tabs on, I've left the checkbox as is to no undesirable states, aka I don't agree.

einkahumor’s picture

I checked out Form when you mentioned it first but stopped reading at "This code has pre-alpha quality and we will rewrite it soon. Do not use on production sites." but I guess I could check it out. Thanks for pointing it out.

I just wanted to point out that VT_Default stops working if you uncheck "Include new fieldsets in vertical tabs by default." which I think is quite a flaw in the module.

crea’s picture

Status: Active » Closed (works as designed)

VT has a very long history of deciding what is a tab and what's not, so in the end VT Default Tab was left in a state where it assumes all fieldsets are tabs by default. There's hook mentioned on the project page, to control VT Default Tab behavior. You can change everything.

einkahumor’s picture

Status: Closed (works as designed) » Active

Rogert that. Thanks.

einkahumor’s picture

Status: Active » Closed (works as designed)

Sorry about the status change, didn't mean to do that.