Hi everyone,

I have a problem with my Drupal 6.3. Here's the modules and their versions which I think at least one of them responsible of this problem:
CCK (6.x-2.0-rc4), IMCE (6.x-1.1), IMCE CCK Image (6.x-1.x-dev), FileField (6.x-3.x) and Views (6.x-2.0-rc1)

I already posted this issue on View support page: http://drupal.org/node/289885 I appreciate if you could have a look at the code I posted there, I didn't want to clutter the space with duplicates.

I was thinking it was a problem with Views module, but further I look into the problem I began to suspect from the IMCE Image module.

It just doesn't render the HTML correctly when I add a IMCE Image field on my view from and select "link" for the formatting.

I really appreciate any idea or help you can share with me. I really need to have a solution asap, since I don't see any other way of doing what I'm trying to get from this view.

Thanks in advance,

Cheers,

Comments

osman’s picture

I believe I found the problem:

/*$Id: imceimage.module,v 1.1.2.1 2008/05/31 23:39:45 panis Exp $*/

/**
 * displays the image as a link. given the class imceimage-link
 **/
function theme_imceimage_formatter_link($element) {
  $item = $element['#item'];
  return '<a href="'. base_path() . $item['imceimage_path'] .'" class="imceimage-link">';
}

Returned HTML code is incomplete. Also in my case, base_path() is not necessary at all, in fact generated path starts with double slashes, which creates a broken link.