This module is very useful. Although filling the title and description is very important, it is not enough. My content type has additional CCK field that I would like IPTC/EXIF information to be filled while uploading.

Any suggestion on how to do that?

Thanks,

Comments

yoeld’s picture

Hi,

I looked into the module and find a possible solution for my request.

At line 839 from the imagefield_import.module one can read:

  // make it easy for other modules to add data to imported nodes using
  // hook_form_alter (@see http://drupal.org/node/714550).
  foreach (array_keys($form_state_values) as $key) {
    if (!isset($node->$key)) {
      $node->$key = $form_state_values[$key];
    }
  }

So, assuming I want to add an additional field in my CCK content type I added

function addiptc_form_alter(&$form, &$form_state, $form_id){
if ($form_id=='imagefield_import_form'){
	$form['iptc1']=array(
	'#type'=>'textfield',
	'#title'=>'tst',
	'#value'=>'my_name',
	);
}
}

The problem is that by doing that, it will add just one additional field and not one field for every picture. Can someone orient me?

Thanks

vordude’s picture

Status: Active » Closed (won't fix)

Sorry, I'm not jumping all over the idea of filling out additional fields at this time.