Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
kong CreditAttribution: kong commentedHi 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.
Comment #2
kong CreditAttribution: kong commentedHmm, 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.
Comment #3
kong CreditAttribution: kong commentedI 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.
Comment #4
defconjuan CreditAttribution: defconjuan commentedthanks kong (was away for a few days). i see there's a new version. i'll update and see if that fixes it.