Eexcerpt
Creates excerpts after stripping out tags.
Download Eexcerpt 1.0.0 (2kb zip)
This version posted June 25, 2007
To make decent excerpts, I needed something that stripped out all tags first and then limited the remaining words, all in one fell swoop, so I combined those functions into one plugin. Rick Ellis originally wrote Word Limit, then Vik Rubenfeld modified that into Word Limit Plus. I took Vik’s modification and added some HTML stripping for your eexcerpting pleasure.
For some background on this plugin, you can review these threads:
Autogenerating an excerpt when a summary doesn’t exist
Definitive answer on Filter_HTML status, update or alternative, please?
USAGE
Wrap anything you want to be processed between the tag pairs. Works exactly like word_limit_plus, but strips tags.
{exp:eexcerpt if_exceeds="600" stop_after="500"
the_link="<a href='{title_permalink=news/item}'>MORE...</a>"}
text you want processed
{/exp:eexcerpt}
REFERENCE:
if_exceeds – Text will be truncated if it is greater than this number of words. This parameter must be included.
stop_after – Text greater than the number of words contained in the if_exceeds parameter, will be truncated to the word length stored in the stop_after parameter. This parameter must be included. Must be less than the number of words in the if_exceeds parameter.
the_link – Optional. A link back to the original article.
View the related thread at the EE Forums.
This entry was last updated May 4, 2008.