Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I added items to the vertical tab section by using field groups, and would like to reorder the vertical tabs. Also I would like to have some tabs hidden for non-administrators.
However these field groups do not show up in the module's (Vertical Tabs Config) configuration page.
Any suggestions how to accomplish this?
Comments
Comment #2
rcodina CreditAttribution: rcodina commentedThanks for using this module! You don't mention it but I suppose you are using Vertical Tabs Responsive module to render the Field group's "vertical tab" together with all standard vertical tabs. To accomplish what you need you will have to do some PHP coding.
1) Reorder vertical tabs: You can try to reorder your vertical tab by altering the weight of your field group. If it doesn't work, you will need to do a custom module in order to render your custom vertical tab (check out Examples module which has an example of what you need). Then It will be sortable by this module by just adding it quickly into the hardcoded list of configurable vertical tabs (see function vertical_tabs_config_vertical_tab_list on vertical_tabs_config.module)
2) Have some tabs hidden: Same as above, once you add it to the hardcoded list, your new custom vertical tabs it will be hiddable by using this module
Comment #3
rcodina CreditAttribution: rcodina commentedComment #4
Marja Kuijsten CreditAttribution: Marja Kuijsten commentedThanks for the reply!
For the fields groups i'm using the module field groups. Oh and I am on Drupal 7.
Comment #5
rcodina CreditAttribution: rcodina commented@Marja Kuijsten Do you need more info? I already supposed you were on D7 ;)
Comment #6
rcodina CreditAttribution: rcodina commentedComment #7
rcodina CreditAttribution: rcodina commentedFeel free to reopen if needed