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.
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
Comment | File | Size | Author |
---|---|---|---|
#6 | horizontal-tabs_js.txt | 6.95 KB | MPeli |
#5 | horizontal-tabs_js.txt | 6.57 KB | MPeli |
Comments
Comment #1
acoustika CreditAttribution: acoustika commentedWell.... 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?
Comment #2
MPeli CreditAttribution: MPeli commentedI am having the same problem.
Comment #3
acoustika CreditAttribution: acoustika commentedI added this patch and got it working, seems like it's not fully implemented in elements yet.... but this patch gets it running
Comment #4
MPeli CreditAttribution: MPeli commentedThe 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.
Comment #5
MPeli CreditAttribution: MPeli commentedI 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.
Comment #6
MPeli CreditAttribution: MPeli commentedSlightly modified version.
Comment #7
eric.chenchao CreditAttribution: eric.chenchao commentedThe patch also works fine to me. Thanks
Comment #8
IKN CreditAttribution: IKN commentedI'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.
Comment #8.0
IKN CreditAttribution: IKN commentedEdited horizontal tab setup
Comment #9
Stev24 CreditAttribution: Stev24 commentedwhere do I put the patch ?