Rendering vertical tabs inside vertical tabs

kiamlaluno - November 7, 2009 - 11:40
Project:Vertical Tabs
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have the need to render with Vertical tabs, only the fieldsets that are contained in a fieldset. Those fieldsets are created by a function, and then added into an existing form using a Drupal core hook.

Is it possible to do it?
Thanks in advance for any help / suggestion.

#1

kiamlaluno - November 7, 2009 - 11:51

This is what I get, so far (see the attached screenshot).

After the shown fieldset, there are again the form fields added by Nodewords, rendered from Vertical tabs.

#2

kiamlaluno - November 7, 2009 - 12:01

It seems I have problems on attaching the image (it is just 70 KB).I will then describe what I get.
The module Nodewords add a fieldset Meta tags to some forms. In the case of the node edit form, what I get is to see all the form fields, including the one not related to the module inside Meta tags; at the bottom of the form, but before the buttons, I see the form fields added by Nodewords, still rendered by Vertical tabs.

This seems a particular case, but it could happen on every form where Nodewords add its own form fields.
I guess I should add the support for Vertical tabs only in the forms created by Nodewords.

Is this a known issue?

#3

Dave Reid - November 7, 2009 - 14:36

Need screenshot

#4

Dave Reid - November 7, 2009 - 14:43

Note you can also pass an array of fieldset element names in vertical_tabs_add_vertical_tabs() to control which fieldsets are vertical-tabizied.

#5

kiamlaluno - November 7, 2009 - 15:13

I am sorry for the screenshot; it seems that sometimes I cannot add attachments.
This time I was able to add it.

AttachmentSize
Voila_Capture_50.png 69.27 KB

#6

kiamlaluno - November 7, 2009 - 15:15

What it is not visible in the screenshot is what I was talking of in the comment #2; the form fields the module adds are duplicated at the bottom of the form, right before the buttons.

#7

Dave Reid - November 7, 2009 - 16:52

Hmm... I thought it was possible to do vertical tabs inside vertical tabs... looking into it.

#8

Dave Reid - November 27, 2009 - 16:00
Title:Is it possible to render just some fieldsets of a form using Vertical tabs?» Rendering vertical tabs inside vertical tabs
 
 

Drupal is a registered trademark of Dries Buytaert.