Hi,
Thanks for your module.
Is it possible to define a link which is sibling a particular tab, as an anchor ?
Best

Comments

bforchhammer’s picture

Component: Miscellaneous » Code
Category: support » feature

I don't think that's possible at the moment, but definitely sounds useful...

I think the javascript library does support anchor tags (at least core vertical tabs), but the module will probably need to generate and add an #id attribute for tabs... I'm a bit short on time at the moment, but the first thing I would try is to change l. 171 (.module file) to the following:

    $tab = array('#id' => $tab_id) + $tabdefault;
brulain’s picture

Thanks a lot bforchhammer,
This hack works fine in my case.
Best

bforchhammer’s picture

Well, if that's all it needs I'd be happy to just commit the change above...

Do you know if this works with both horizontal and vertical tabs?
Is the naming of id values acceptable?

brulain’s picture

Hi,
I never use vertical tabs.
Maybe the naming of id values is a bit long, but it is not a problem for me.
Best

bforchhammer’s picture

Status: Active » Fixed

Committed and pushed. Note that I slightly adjusted the id value.

Status: Fixed » Closed (fixed)

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