Displaying CCK fields in tabs

pushkar - August 25, 2009 - 21:24

Hello,

I am trying to create a custom node (using CCK) that has the following structure

Node
-Field 1
-Field 2
-FieldGroup1
|__FGField11
|__FGField12

-FieldGroup2
|__FGField21
|__FGField22

-FieldGroup3
|__FGField31
|__FGField32

I want to display the node in the following format
Node
-Field 1
-Field 2

Tab1 : containing FieldGroup1
Tab2 : containing FieldGroup2
Tab3 : containing FieldGroup3

There is a really nice implementation of almost the exact thing at http://observers.gohernandez.com/election/results/2005/kabul - check out the tabs at the bottom.

I have experimented with CCK Fieldgroup tabs (http://drupal.org/project/cck_fieldgroup_tabs) but I am not sure how to do this with the quick tabs implementation above. One option is to really update the node.tpl.php for the particular node type I have created, but I was wondering if there is a module or a quick tutorial on customization of one of the many tab / custom tab modules that will help me achieve this? I would rather not tough the templates if I don't have to (I am somewhat OK at basic PHP but not great to do things myself) .

There are a lot of different modules (quicktabs, tabs, magic tabs) but not a lot of documentation on how I can get to the end result.

I do appreciate the help. Thanks in advance.

Regards

I find using CCK Fieldgroup

nevets - August 25, 2009 - 23:14

I find using CCK Fieldgroup Tabs the easiest approach in case like this.

I agree

pushkar - August 26, 2009 - 02:06

However , is it possible to have all tabs show up , without the previous / next buttons?

Check under

nevets - August 26, 2009 - 02:33

Check under admin/settings/tabs, you can disable the navigation buttons.

You are my saviour

pushkar - August 26, 2009 - 06:51

@nevets, yes you are.

*smacking my head on the laptop*

Gotta get some sleep now. It was *right there* ... this is what happens when you have waay to many modules on the site.

thanks again.

 
 

Drupal is a registered trademark of Dries Buytaert.