I am creating a simple table with basic fields. I have created a field with WYSIWYG image upload. This works so long as I am not trying to limit the field to 1 image.

Once "one image" is selected the rest of the view does not display images. only the first image in the list shows. Switch back to "All images" and all images show in all fields.

Any help?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jahaswel’s picture

Priority: Normal » Major

Having the same issue. Really need this addressed. Right now it's limiting to 1 image per view (which seems to be placed on the post farthest down on the list). Instead of 1 image per node in the view.

jahaswel’s picture

FIXED!!!

in this file : wysiwyg_imageupload/views/wysiwyg_imageupload_handler_field_images.inc

This code:

  function pre_render($values) {
    $vids = array();
    $this->items = array();

    $this->field_alias = $this->aliases['vid'];
    foreach ($values as $result) {
      if ($result->{$this->aliases['vid']}) {
        $vids[] = $result->{$this->aliases['vid']};
      }
    }
    $iids = wysiwyg_imageupload_get_images_by_vids($vids);
    foreach ($iids as $item) {
      $this->items[$item['vid']][$item['iid']] = $item;
      if ($this->options['images'] == 'one_image') {
        break;
      }
    }
    $this->items[$this->field_alias] = $iids;
  }

should be:

  function pre_render($values) {
    $vids = array();
    $this->items = array();

    $this->field_alias = $this->aliases['vid'];
    foreach ($values as $result) {
      if ($result->{$this->aliases['vid']}) {
        $vids[] = $result->{$this->aliases['vid']};
      
	    $iids = wysiwyg_imageupload_get_images_by_vids($vids);
	    foreach ($iids as $item) {
	      $this->items[$item['vid']][$item['iid']] = $item;
	      if ($this->options['images'] == 'one_image') {
		break;
	      }
	    }
    	}
    }
    $this->items[$this->field_alias] = $iids;
  }
Matthew Gibbon’s picture

I thought there wouldhave been more interest in this error, being a very cool module.

STILL NO JOY THOUGH, it just doesnt show more images when 1 images is selected.

See attached

Matthew Gibbon’s picture

Tested with new rc3 version, yipee it worked

Thanks

Matthew Gibbon’s picture

arggg no, take that back, seems intermitant for some reason