Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
Flag it:
kgr_safe_excerpt
Generates an excerpt based on the body text with tags removed, or the excerpt, if it exists.
It’s designed to operate like Movable Type’s handling of excerpts, in that it will return the excerpt for an article if it exists, otherwise it will only return the first 20 words (but the number of words is configurable).
You can configure the number of words with the “words”? parameter to the tag:
<txp:kgr_safe_excerpt words="50" linktext="Continue reading..." />
I’ll add an option to turn the permalink off entirely in the next version.
Initially released:
2004-07-11Posted here:
08 Apr 2005Article modified:
12 Aug 2007









You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:
Commented (9)
Not much help!
here is how i have it set up
< code>
< txp:article />
< txp:if_individual_article>
< txp:kgr_safe_excerpt words="50" linktext="More>>” />
< p>
< txp:link_to_prev>< /txp:link_to_prev>
< txp:link_to_next>< txp:next_title />< /txp:link_to_next>
< /p>
< /txp:if_individual_article>
< txp:if_article_list>
< p>
< txp:older>Previous
< txp:newer>Next
< /p>
< /txp:if_article_list>
< /code>
thanks!
The example above looks fine—it should work. I’m not sure why it wouldn’t work. Maybe the plugin broke under 4.0? I’m not actually using the plugin anymore on my own site, so I’m not sure if it still works under the latest Textpattern versions. If I get a chance I’ll check it out later.
-Kurt
Thanks :¬)
http://www.raschke.net/~kurt/s/software/textpattern/plugins/kgr_safe_excerpt.txt
-Kurt
Ooops – can someone paste a url for this plugin??
Pleeeeeese
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.
Would you care to write a comment or visit the forum discussion?