No respecting core fields weights with fieldgroup tab formatters

jcmarco - August 27, 2009 - 08:26
Project:CCK Fieldgroup Tabs
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

If you select the option to show all the residual fields in a tab, the ones that are not part of any fieldgroup tab, then when showing the node, you get that core fields and cck fields are not ordered as you have set up for that content type, (in fact only cck fields are ordered but without the core fields).

This patch moves the rest of fields (#content_extra_fields) that haven't been moved into the residual tab (originally only cck fields), and also set the #pre_render of this extra_fields in order to allow that tabs rendered them correctly.

With this patch is possible to show any node with a full tab layout, in the same way and order that you get when no using any tab.

AttachmentSize
cck_fieldgroup_residual_weights.patch864 bytes

#1

jcmarco - August 27, 2009 - 11:41

Patch file wrong,
updating

AttachmentSize
cck_fieldgroup_residual_weights.patch 871 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.