I use IMCE and ImageCache to automatically generate thumbnails for content images. I spent HOURS trying to figure out why the image was being lost on some teaser items and not others. Finally, I tracked it down to the fact that these images are being stripped out when this theme's "read more" link is triggered on pages with teasers. In template.php, the offending function is:

function inf08_render_content($content) {
  // concat everything in $content except #children
 foreach($content as $key => $field) {
    if ($key != '#children' ) {
    $output .= $field['#value'];
    }
  }

  return $output;
}

Can you either (A) tell me how to adapt this so that it's not stripping out everything, or (B) add an option to theme settings?

Comments

kong’s picture

Assigned: Unassigned » kong

Hi defconjuan,

Personally I never used IMCE and ImageCache so I guess it would take a while to set up the test site.

However, I have downloaded the modules and will try to play around with them.
If you have any instruction on how to set things up that would help a lot.

kong’s picture

Hmm, I can't reproduce the problem. Are you using CCK? Because as far as I know, the "read more" link feature is having a problem with CCK fields.

However, I added an option to toggle the "read more" feature on/off in the DEV version so it should partially solve your issue. You can download the 6.x-1.x-dev version to try it out once the package is re-generated.

kong’s picture

Status: Active » Fixed

I have modified the way the "Read more" link is rendered. It seems to work fine with CCK fields in my test site. So I am marking this as fixed for now.

defconjuan’s picture

thanks kong (was away for a few days). i see there's a new version. i'll update and see if that fixes it.

Status: Fixed » Closed (fixed)

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