I have created a content type with cck. One of the fields is called name and this field requires multiple values per node. Typically each node will have twenty to thirty names that need to be entered.

CCK by default allows you to enter three values for each time you update the node. So in order to create a node with 27 names I have to do the following:

Create the node with three of the names.
Edit the node and add three more names.
Then repeat the last step seven more times.

This is obviously time consuming. Is there a way to make some change that will allow thirty names allowed to be inserted when you create the new node? if so where should I look to figure this out. I assume editing CCK would be needed but I am finding editing modules really confusing.... any help would be really usefull.

thanks,
Brett

Comments

matt_paz’s picture

I'm wondering if there couldn't be an ajax based mechanism for adding more fields ... something that didn't require one to reload the whole page?

NoSpin123’s picture

That would be even better.

peps’s picture

A quick but messy solution is to edit [cck_type].module (in this case, text.module D5) and find: Implementation of hook_widget().

Inside the function, find this line of code:

foreach (range($delta, $delta + 2) as $delta) {

Just increase the 2 to whatever you want. Although I don't know the implication of this on the database, but for me it works.

Automatic adding of fields via ajax would most certainly be good for multiple value field settings.