Tabs not appearing on display

thatnewguy - May 6, 2008 - 07:08
Project:CCK Fieldgroup Tabs
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

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.

#1

borfast - May 15, 2008 - 13:26
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.

#2

submit.dk - May 15, 2008 - 22:45

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

AttachmentSize
tabs-example.gif 36.24 KB
no-tabs.gif 37.73 KB

#3

rivena - May 17, 2008 - 09:34

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

Anisa.

#4

gabork - May 25, 2008 - 01:09

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

#5

einsicht - May 27, 2008 - 23:42

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

#6

gabork - May 29, 2008 - 05:07

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?

#7

borfast - May 30, 2008 - 14:00

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

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

#8

gabork - May 30, 2008 - 15:03

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!

AttachmentSize
cck_fieldgroup_tabs.zip 1.99 KB

#9

submit.dk - May 30, 2008 - 21:07

God damn - I love you gabork!

It works for me to. Thanks a LOT.

#10

borfast - June 2, 2008 - 09:28

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

Thanks again for finding and fixing the problem! :)

AttachmentSize
gabork_patch.txt 487 bytes

#11

dman - June 3, 2008 - 01:38
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!

#12

nedjo - June 19, 2008 - 22:31

Thanks, applied.

#13

nedjo - June 19, 2008 - 22:53
Status:reviewed & tested by the community» fixed

#14

Anonymous (not verified) - July 3, 2008 - 23:02
Status:fixed» closed

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

#15

mattez - August 4, 2008 - 21:04

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

#16

mattez - August 4, 2008 - 21:05
Status:closed» postponed (maintainer needs more info)

#17

nedjo - September 11, 2008 - 04:44
Status:postponed (maintainer needs more info)» closed

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

#18

toddchris - May 22, 2009 - 14:20
Status:closed» 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

#19

wildebeest - May 27, 2009 - 17:16

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!

#20

Gábor Mayer - June 21, 2009 - 22:13

+1 D6

#21

nedjo - August 19, 2009 - 06:42
Status:active» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.