Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.4
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2007 at 23:35 UTC
Updated:
13 Dec 2007 at 19:23 UTC
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
Comment #1
yched commentedHave you looked at the 'multiple' checkbox on each field's setting form ?
Seems it's exactly what you describe.
Comment #2
hbfkf commentedGreat! 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.)
Comment #3
yched commentedIt's an open feature request : http://drupal.org/node/119102
In short : would be could, but not feasible with CCK's current API :-(
Comment #4
cabbiepete commentedSee http://www.johnandcailin.com/blog/cailin/cck-witch-multi-page-cck-forms-... which does what you want.