Content last modified Monday 3 September 2018
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

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.

Article Request Count:
Initially released:
2004-07-11
Posted here:
08 Apr 2005

You know you want to visit the Archives.
Published with Textpattern