Hello..... Been a while since I last made some drupal stuff

But I used to use the field group for horizontal tabs.... And now can't get it to work...
I tried do a fresh install with lastest drupal dev, ctools, elements and field group...and using bartik theme and made some articles with horizontal tabs
But all it does is hiding the content...

Made a horizontal setup like this

Hgroup
   Htab
     content
   Htab
     content
CommentFileSizeAuthor
#6 horizontal-tabs_js.txt6.95 KBMPeli
#5 horizontal-tabs_js.txt6.57 KBMPeli
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

acoustika’s picture

Well.... Got something to work now by adding the files from this commit

Figured out that the horizontal tab css and js files and the element.module patch isn't in any of the downloads....
Is this intended? as the work is still in very initial phase?

MPeli’s picture

I am having the same problem.

acoustika’s picture

I added this patch and got it working, seems like it's not fully implemented in elements yet.... but this patch gets it running

MPeli’s picture

The patch seems to be working.

I would like to created horizontal tabs using Form API. Is it possible? I found an example of verticals tabs. Is it possible to create something similar with horizontal tabs?

http://www.firedev.ro/blog/drupal-tutorial-vertical-tabs-form-api-example

Thank you, Martin.

MPeli’s picture

FileSize
6.57 KB

I applied the patch in #3 and modified it so that it is compatible with #1402816: Open a specific horizontal tab on page load but without page jumping to the anchor.

Could you please implement this code to the dev version of Elements?

Thank you, Martin.

MPeli’s picture

FileSize
6.95 KB

Slightly modified version.

eric.chenchao’s picture

The patch also works fine to me. Thanks

IKN’s picture

I've got it working using the same patch. Thank you. I got it to show tabs for nodes from other content types (book pages). However, I'm not sure where to ask this, but

a) Is anyone else having trouble with the tabs breaking (leaving the rendered nodes showing sequentially down the page -- and no tabs)? Mine break each time I sneeze, but can be fixed by running the update.php script. My only guess is that there are too many calls to css scripts when I look at the page's source code.
b) Is there a way to make tabs for fields added to the node, rather than nodes rendered as part of the node on which the tabs show? I have not figured out how to make a tab for a normal field -- or how to render a field attached to a node.

Sorry if these are obvioiusly a non-coder's questions, but that's the case.

IKN’s picture

Issue summary: View changes

Edited horizontal tab setup

Stev24’s picture

Issue summary: View changes

where do I put the patch ?