Hi everybody! I'm trying to theme the edition forms for different content types, so I can place the form controls inside tables (I really don't like the default layout with one in top of each other).

I'm using the template.php/content-type_node_form.tpl.php method as is explained here

http://drupal.org/node/98253

and everything goes fine, as long as the content-type is not using CCK fieldgroup tabs. When using it and printing the fields that are inside a given fieldgroup/tab, they simply don't appear (all the tabs are blank)

Perhaps I'm missing something, as I'm kinda new to Drupal.

Any help will be appreciated. Thanks a lot!

Comments

gsvitak’s picture

I had to theme by copying to style.css but would love to know the correct approach since this appears to break tabs in firefox 3.x on my site.

.anchors .tabs-selected a, .anchors a:hover, .anchors a:focus, .anchors a:active, .fragment {tabs.css (line 57)
background:#EAEAEA none repeat scroll 0 0;
}

Bilmar’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

Was wondering if you were able to resolve your issue? Any pointers?
Switched to 6.x dev as there hasn't been any comment for 10 months so wondering if any changes in newer versions.

pvanerk’s picture

I got more or less the same question.

When I don't use the CCK Fieldgroups Tabs module, I can hide certain fields by:

print drupal_render($form['body_field']);

$form['body_field']['#access'] = FALSE;

unset($form['body_field']);

But when I put on the CCK fieldgroups Tabs module, none of the above seems to work.

Any solutions?

Thanks