imagefield_import taxonomy not seen

mathias2711 - December 21, 2008 - 11:39
Project:Imagefield Import
Version:5.x-1.3
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Under "admin/content/imagefield_import" the Taxonomy view is not seen, and so you can not import any pictures into a special taxonomy.
with the version 5.x-1.2-beta you can choose a taxonomy item and add the pictures to this item.

#1

apratt - January 16, 2009 - 02:03

Ran smack dab into this... Imagine my surprise when the client called to say that the Taxonomy dropdown didn't appear that my instructions called for. *grin*

So I added this piece back in from 1.2beta

//get the content type and field names
  $targetsetting = variable_get('imagefield_import_fieldname', FALSE);
  list($type, $field) = split(":::", $targetsetting);

And replaced

      $form['type'] = array('#type' => 'value', '#value' => 'image');
      $form['#node'] = new stdClass();
      $form['#node']->type = 'image';
      taxonomy_form_alter('imagefield_node_form', $form);

with

      $form['type'] = array('#type' => 'value', '#value' => $type);
      $form['#node'] = new stdClass();
      $form['#node']->type = $type;
      $form_id = $type . '_node_form';
      taxonomy_form_alter($form_id, $form);

And re-enabled the following commented out section.

  if (module_exists('taxonomy')) {
     $node->taxonomy = $taxonomy;
  }

I suspect that all this was removed in dealing with the commenting issues

#2

vordude - March 4, 2009 - 00:54
Status:active» fixed

Fixed in D5 v1.4, wrong file committed, sorry for the huge delay---

#3

System Message - March 18, 2009 - 01:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.