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.
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
Comment #1
a_c_m commentedsee #480978: Fieldgroup support for the discussion about this in the features queue.
Comment #2
markus_petrux commentedThe 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.
Comment #3
markus_petrux commentedTo export all fieldgroups in the system, you can use fieldgroup_groups().
To export all fieldgroups in one particular content type, you can use:
To export one single fieldgroup in one particular content type, you can use:
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.