I have something like this to list blog posts:
{$row.blog_text|jrCore_format_string:$item.profile_quota_id|truncate:300}
There is an issue with this when a post contains an inserted image at the beginning. I think it just stops outputting the rest of the template where this resides and at that point, and then continues outputting the rest of the page.
For example, I have the above in index_list_blogs.tpl, in an altered Elastic skin. I'm listing 5 recent blogs in the center column of index.tpl. The list of blogs is the last thing in that column. I have a blog post with an inserted image at the beginning of the post. It outputs the image, but nothing else. The last column is output, but the closing divs in the center column are missing so the last column is output down below the container.
I think you should be able to test this in jrElastic since I haven't altered much besides moving blocks around. Probably you understand what's going on without needing to test it. I'm guessing the image is stored as a blob so the truncate length includes the blob, but something happens when truncating in the middle of that.
Maybe there is already something in jrCore_list which accounts for this. I'm not sure what the best way would be, but I think I would like to include the inserted image in this particular blog list, however, I can also see where you might want the option to not include inserted images in a jrCore_list listing as well.
updated by @blindmime: 09/19/14 05:17:25AM
