Hi everybody,

I do not yet have a deep understanding of CCK but from what I see after looking at it for a few minutes, it currently does not support adding (variable-length) arrays of some type of field. For instance, I do not want to only add one image field, not two, and not three, but an array of image fields (whose length is dynamic).

Does something like this exist?
Is there interest in this?

What I am thinking of is a generic module that checks what CCK field types are available and, for each of these, provides a corresponding "array of [field type]" field type. Something along these lines.

Kaspar

Comments

yched’s picture

Have you looked at the 'multiple' checkbox on each field's setting form ?
Seems it's exactly what you describe.

hbfkf’s picture

Title: Field type: array » "Multiple" feature for CCK groups

Have you looked at the 'multiple' checkbox on each field's setting form?

Great! I have completely overlooked this, thanks for your help.

For what I need, though, the multiple feature does not seem to suffice (strictly). I need a dynamic array of image fields, each having an associated text field editable with TinyMCE.

I could implement this using an "image field" and a "text field" and mark them both as "multiple". Of course, this allows 10 images and only 4 texts. This is not really bad but also, it is not so nice. What I seem to need is the "multiple" feature for CCK groups!

(If "multiple" looks feasible for CCK groups, I am willing to start working on it. I have some Drupal programming experience but not yet with CCK.)

yched’s picture

Status: Active » Closed (duplicate)

It's an open feature request : http://drupal.org/node/119102
In short : would be could, but not feasible with CCK's current API :-(

cabbiepete’s picture