By fossle on
My teasers just cut off midsentence. How do I add "..." to the end of the teaser so it doesn't look so abrupt...
Thank you,
Kim
My teasers just cut off midsentence. How do I add "..." to the end of the teaser so it doesn't look so abrupt...
Thank you,
Kim
Comments
I use the smarty templating
I use the smarty templating engine and I do this with:
{$content|truncate:900:"..."}[/b] {if $content|count_characters > 900} </a> <a href={"$node_url"}>read more</a><br /> {/if}The truncate part is what you want. If you use phptemplate then try looking for something similar on php.net.