Closed (fixed)
Project:
Inf08
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Apr 2009 at 23:02 UTC
Updated:
19 May 2009 at 18:20 UTC
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 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 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 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 commentedthanks kong (was away for a few days). i see there's a new version. i'll update and see if that fixes it.