Hi,
I'm using the CCK3 multigroup feature and liking it. However, I need to modify it somehow so that it shows a multigroup twice by default, rather than just once.
For example, I have a group consisting of 'Name', 'Address', 'Phone number'.
At the moment, on opening the user form, the group is shown once, with the option to add more:
- Group 1
-> Name
-> Address
-> Phone
But I need it to show, on opening the page and without the user needing to add another group him/herself, two of the same group (or three, or four, or five... I'm actually going to make the number dynamic, dependent on another variable):
- Group 1
-> Name
-> Address
-> Phone
- Group 2
-> Name
-> Address
-> Phone
I've tried digging in the code of the CCK module, and have tried using hook_form_alter in a custom module, but haven't been able to do this so far. Can anybody more experienced lend some advice?
Thanks,
Matt
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedYou can set a certain number of repeats in the multigroup settings. Almost anything you want to change in a CCK form has to be done in #after_build.
Comment #3
temp CreditAttribution: temp commentedBut, what can i do, if i need "Number of repeats: unlimited" and i want in node edit page have more than 1 row to add data.