Hi, I have the excerpt module enabled and image assist enabled for my body textarea.
The teaser is working fine unless there is an image inserted. The image assist tag has the following form:
[img_assist|nid=657|title=The title of my image|desc=|link=node|align=right|width=150|height=199]

The problem is that this is counted as a number of characters when someone doesn't feel the excerpt field. My number of characters for teasers set is 200, and I don't want more text than that, but the image assist tag is counted as part of it.
So, if the img_assist tag is longer than 200 characters (it happens) it simply gets cut and all I get is a tag displayed as teaser text.
If it's less than 200 characters, then the image is displayed, but I only get a few words of text next to it in my teaser.

So my question is: Is there a way for the excerpt module NOT to count the characters from the image assist tag, but just leave it in, and count the real words to 200 characters?

Thanks,

Comments

hayesr’s picture

Status: Active » Closed (won't fix)

Excerpt module simply provides a field that allows you to manually set what goes in the node teaser. Excerpt doesn't do any character counting. When the provided teaser field is empty, it uses the core API node_teaser() function to generate a teaser based on the setting in Content Management > Post Settings.

I agree that teaser generation should ignore tags, but this is probably something to be figured out in core, as many modules provide tags like these.