Currently, features is able to integrate very nicely with CCK, apart from field groups, for integration, features needs some kind of exportable from field group.

Comments

a_c_m’s picture

see #480978: Fieldgroup support for the discussion about this in the features queue.

markus_petrux’s picture

The Content Copy module (part of CCK package) is able to export/import fieldgroups. You may want to look at that to see how it works.

markus_petrux’s picture

Category: feature » support
Status: Active » Fixed

To export all fieldgroups in the system, you can use fieldgroup_groups().

To export all fieldgroups in one particular content type, you can use:

$groups = fieldgroup_groups($type_name);

To export one single fieldgroup in one particular content type, you can use:

$groups = fieldgroup_groups($type_name);
$group = $groups[$group_name];

To import them, see content_copy_import_form_submit() in content_copy.module.

Note that the scope of group names is the content type. That is, it is possible to have more than one fieldgroup with the same name on different content types. This is not the case with fields. The scope for Field names is global. You can share them between content types, however, in which case the fields may have global settings and per-instance settings.

Status: Fixed » Closed (fixed)

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