CCK Field ID

Component ID

1990116

Component name

CCK Field ID

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

The content of multigroup fields created with CCK are stored in tables in the database which use the the node version id (vid) and delta (the position within a set of fields that a field occurs) in order to reference them. Unfortunately, as delta can change - i.e. if a node is edited and the order of the fields is changed - you cannot use these tables to reliably reference a particular piece of content stored within a field on a node.

At least one module exists to reference fields which aren't in multigroups (the serial module), however I could not find any which are able to track the content of fields stored in a multigroup.

This module creates unique IDs for non-grouped, standard grouped and multigroup CCK fields. It includes a function which you can use to obtain a reference for a CCK field from its node nid, node vid, the name of the CCK table (content_field...) and its delta.

This has been built for Drupal 6 - I don't know whether the issue that this project is addressing also applies to Drupal 7.

Part of the Commtap project.