It does work with Fieldgroup module horizontal tabs, so it has to work also on this but I have no luck.

Comments

PlayfulWolf’s picture

Title: Activate current bootstrap vertical tab from URL fragment » Activate current bootstrap vertical/horizontal tab/nav/pill from URL fragment
cornelyus’s picture

Looking into this also, any help?

arpas’s picture

Hello,

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

cha0s’s picture

Status: Active » Closed (fixed)

Working in master, just used the ID of the tab (or accordion item) as the location hash.

cha0s’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

gennadiy’s picture

We 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

kpastore’s picture

#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!

Advin’s picture

Seems 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.