On a new test site I've set up a content type using fieldgroup tabs and they appear properly on the editing form but they do not display on the normal view. The fields stack vertically as if they were not in groups and there are no tabs. It's a fresh install and the only other unrelated modules installed are views and quicktabs.

Tried all sorts of combinations of setting and gone over the forms several times to ensure I didnt leave anything necessary empty but everything seems to be in order.

Comments

borfast’s picture

Priority: Normal » Critical

I can verify this problem.

I also have a fresh install, created a new content type, set up the groups, configured everything as per instructions but I see no tabs when viewing the node, only when editing it.

submit.dk’s picture

Status: Closed (fixed) » Active
StatusFileSize
new37.73 KB
new36.24 KB

I can also verify this problem. This is what I did:

1) Installed CCK and activated all (include content and fieldgroup)
2) Installed Tabs and activated
3) Installed CCK_fieldgroup_tabs and activated
4) Created a new content type called "tabpage"
5) Created a field called "test1field"
6) Created a fieldgroup called "test1fieldgroup" (remembered to select tabs)
7) Told the field "test1field" that it shoud be a part of the fieldgroup "test1fieldgroup"
8) Created a field called "test1field"
9) Created a fieldgroup called "test1fieldgroup" (remembered to select tabs)
10) Told the field "test1field" that it shoud be a part of the fieldgroup "test1fieldgroup"
11) Gave permissions to view the fields under User > Permissions
12) Went to "display fields" and choosed "tabs" in both Teaser and Full node
13) Created a new page based on my new contenttype "tabpage"
14) When creating there was two tabs as expected
15) But when viewing the page with the content in the browser there was no tabs (see the attached file no-tabs.gif)

I'm using Drupal 6.2, IE 7.0, and a theme I have based on Garland.

The tab example is also acting strange. When I click on the first and third tab it's cool. But when I click on the second, something is wrong. I attached the
screendump (tabs-example.gif).

Thank you in advance

www.submit.dk/drupal

rivena’s picture

I also have this problem on Drupal 5. I checked it through the tapestry theme, so it's not theme specific.

Anisa.

gabork’s picture

This would be a very useful module, but it seems the code does not work with 6.x and the corresponding CCK - the data structures are different, the API-s have changed, etc. - although the fact that it does render tabs in the editing mode, indicates that the underlying libraries do work.
We would all be very thankful for a fix, I believe...
-- Gabor

einsicht’s picture

I have the same problem. Set "tabs" display everywhere and still nothing when viewing, only editing. Anyone find a solution yet?

gabork’s picture

Well, could somebody please check this patch: diff:

$ diff cck_fieldgroup_tabs.module.org cck_fieldgroup_tabs.module
118c118
< if (isset($node->content[$group_name]) && $group['settings']['display'][$context] == 'tabs') {
---
> if (isset($node->content[$group_name]) && $group['settings']['display'][$context]['format'] == 'tabs') {
135c135
< // Title is required for tabs.
---
> // Title is required for tabs.
159c159,160
< $node->content['fieldgroup_tabs'] = form_builder('tabset', $node->content['fieldgroup_tabs']);
---
> $empty = array();
> $node->content['fieldgroup_tabs'] = form_builder('tabset', $node->content['fieldgroup_tabs'], $empty);

Each group gets its own tab, and the fields are beneath, arranged vertically - is this how it is supposed to work?

borfast’s picture

gabork, it works just fine, for me. Thanks!! :)

Could you please add the patch as an attachment to this issue?

gabork’s picture

StatusFileSize
new1.99 KB

Sorry, I don't know the etiquette but I attached my patched file here.
Make a backup copy of your cck_fieldgroup_tabs.module and use the attached file instead.
Note: this is for the 6.x version!

submit.dk’s picture

God damn - I love you gabork!

It works for me to. Thanks a LOT.

borfast’s picture

StatusFileSize
new487 bytes

gabork, I'm attaching your fix as a patch.

Thanks again for finding and fixing the problem! :)

dman’s picture

Status: Active » Reviewed & tested by the community

YAY that worked for me too.
+1 RTBC
(um, Almost ... just swap that tab for some spaces when committing please!)

Thanks heaps!

nedjo’s picture

Thanks, applied.

nedjo’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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

mattez’s picture

Hi can any body help with patch for version for D5? There exactly same problem..
http://drupal.org/node/285735

mattez’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)
nedjo’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

From the link given, this appears to be a different issue. Reclosing.

toddchris’s picture

Status: Closed (fixed) » Active

I read through the entire thread, and I'm having the same issue now, even though the patch has been applied. Does anyone know of any module conflicts that have come up recently? I thought it might have been the Fivestar module, since that doesn't seem to be working for me in IE7 either, but disabling it does not fix the problem with the tabs not showing up in view.

Any ideas would be appreciated.

tc

wildebeest’s picture

I have the same problem since I upgraded from D6.10 to D6.12 a few days ago.
I use the latest modul-version from oct. 2008 (6.x-1.x-dev).

Any help on that issue would be great!

Gábor Mayer’s picture

+1 D6

nedjo’s picture

Status: Active » Closed (fixed)

I can't reproduce this issue with the current version. Please reopen with details if it recurs.

ardnet’s picture

Yup, me too right now, I can't get the tabs work even though I implement gabork's patch.
Well, i did installed the current version one,but still doesn't work with me.
Anyone can give some idea what's going on probably?

Sorry, so I activate again this issue.
Thanks

ardnet’s picture

Status: Active » Closed (fixed)

Apologized, seems I managed to get it done though.
Switch back to close now.

Thanks