Hi @all,
i'm stucked and thought maybe anyone here can help me.
I need an module (when there isn't a module, maybe i want to develop an module ;) ), where i can add dynamicly fieldgroups.
Such like all the other CCK Fields, where i have an add more button.
My Idea is you can create a Fieldgroup and can set the number of values the user can enter, like the other CCK fields.
Then you can put in this Fieldgroup as much other CCK Fields (like Fieldgroups works now).
When you create a new node with this Fieldgroup you have an add more button at the Fieldgroup. When you click on it a new instance of this Fieldgroup will be added, with all CCK Fields in it.
Is there a Module for this? When not it is possible? The big problem i think of, is to create the CCK Fields in the Fieldgroup on demand. I have no clue how I can do this, yet. Maybe anyone have a good Idea?
Or have anyone a better solution for my general Problem:
I have Categories. For each Category i can define some values like name, color, ... Also in each Category are an ImageField where you can upload 'unlimited' pictures.
Each node can have multiple Categories.
So i want the Categories as Fieldgroup, which i can add dynamicly.
I hope somebody can help me and sorry for my english...
Comments
Have a look at the
Have a look at the 6.x-3.x-dec version of cck. It includes the 'multigroup' module. I'm not sure how to combine it with a taxonomy field though.
I didn't test it yet, but
I didn't test it yet, but multigroups sounds exactly like that what i searched for. I think i will download tomorrow the CCK 3.x dev and test it.
Thanks a lot, hope it works :)
I tried Multigroup from
I tried Multigroup from CCK3.x_dev. It is a goof beginning, but my Problem is i want not an 1:n relation, i want an n:m relation, so that every field in the multigroup can hold multiple values.
i looked through the code from multicode, it is using the delta from the other CCKs, so with this method it issn't possible what i want. and i haven't any idea, how could i make such a module.
It must create more CCK Fields on demand and thats an feature i wouldn't allow all my users...
So i hope maybe anyone out there have a brilliant idea...
You cannot have a multiple
You cannot have a multiple value field in a multigroup row; that's a limitation of the CCK/Drupal database structure. You can find the explanation for this limitation in comment 305 of the original (and huge!) issue for the multigroup feature: http://drupal.org/node/119102?page=1#comment-1191555.
I don't know if this is appropriate for your use case, but you could consider to use mutiple nodes instead of one to build your data. Instead of having a multigroup, you would use a multi-value node reference field. Every referenced node can contain the data that you would otherwise store on a single multigroup row.