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.
It does work with Fieldgroup module horizontal tabs, so it has to work also on this but I have no luck.
Comments
Comment #1
PlayfulWolf CreditAttribution: PlayfulWolf commentedComment #2
cornelyus CreditAttribution: cornelyus commentedLooking into this also, any help?
Comment #3
arpas CreditAttribution: arpas commentedHello,
I also bumped to this problem and created custom module to extend Bootstrap tabs features with history, access / activate tab from url, transliteration of tab ID.
My custom module can be downloaded from https://github.com/ArunsKas/Bootstrap-fieldgroup-extra/archive/master.zip
Comment #4
cha0s CreditAttribution: cha0s commentedWorking in master, just used the ID of the tab (or accordion item) as the location hash.
Comment #5
cha0s CreditAttribution: cha0s commentedComment #7
gennadiy CreditAttribution: gennadiy commentedWe needed to link to the specific Bootstrap tab from another page and #3 (Thank you, Arūnas!), Bootstrap-fieldgroup-extra, worked well for us.
Even we don't use Bootstrap-fieldgroup and just commented it out in the info file:
;dependencies[] = bootstrap_fieldgroup
Also you need to check
"Turn on Bootstrap fieldgroup tabs history"
on the
/admin/config/content/bootstrap_extra/settings
Comment #8
kpastore CreditAttribution: kpastore commented#3 worked for me, as well. My client only allowed javascript to be added via the Add to Head module, so I copied the js from the module and added it to the specific page where it was needed. Perfect! Thanks!
Comment #9
Advin CreditAttribution: Advin commentedSeems that #3 has some bug: we are trying to count amount of tabs (line 30, bootstrap_fieldgroup_extra.module) before detecting empty tabs (line 75). So if we have empty tabs the total number may be incorrect.