Hello,

Thank you for this helpful module!
Can you tell me please if it is possible to display the primary tabs as usual and only show secondary tabs in a dropdown box.
For better understanding of what I mean - Tab 2 has seondary tabs:

Tab 1 | Tab 2 | Tab 3
      | Sub 1 |
      | Sub 2 |
      --------

When you hover (or click?) Tab2 you will see Sub 1 and Sub2.
I hope you can imagine what I mean. :)

Regards
Stefan

Comments

derekwebb1’s picture

That is a very interesting idea. I think that would be useful to a great many people including myself. I think in order to do this idea justice, the select box (secondary links) would have to be replaced by list items of links or somesuch.... To date I have been unable to get JS (jQuery) to open a select box (as in synthesize a click).

But I do like the idea. Thanks for putting it forward! If you know how to synthesize a click on a select box please let me know and it would "expedite" this concept's creation.

Cheers, Derek

derekwebb1’s picture

UPDATE: I have begun work on this... I am at the point where I need to generate the subtab lists for each of the primary tabs.

See: http://github.com/derekwebb/dropdown_tabs for the code. Patches and such are always welcome!

Cheers, Derek

design.er’s picture

WOW, it sounds pretty nice! :)
Do you like to keep the select lists or do you want do move to html list elements?
Sorry, if my questions may be silly but I asked me why we use select lists at all instead of html list elements. :)

derekwebb1’s picture

Next update: Have not completed the work yet. I have not had a chance to get back to it. Hopefully next week I will have a bit of time to toss at this.

Cheers, Derek

deggertsen’s picture

In case anybody is looking into this. You may want to look into http://drupal.org/project/local_tasks_blocks

It doesn't support drop downs, but it can combine the primary and secondary tabs and display them in an accordion form. It also moves the to a block and is much easier to theme.