- Version 10.0.1
- Project Flyweb Production
- Section blog
- Tags
Published This Post is a few years old and the Information provided might be out of date!
Textpattern Plug-in: Truncate Article Excerpt
Textpattern Plug-in to truncate the Article Excerpt

I missed the possibility to truncate the Article Excerpt to a given number of words, with the CMS textpattern. So, I made myself a simple Plug-in to add this missing Feature.
Textpattern Tag
<txp:fly_excerpt truncate="10" more="..." link="0" class="green-link" />Attributes
The Plug-in Tag accepts 4 attributes:
truncate- How many words should be truncated. Default value:10more- Link text string. Default value:...link- Show "more" string as HTML link. Values0(no) or1(yes). Default value:0class- Optional HTML Class name formorelink
Download
A Repository can be found on github - github.com/brachycera/fly_excerpt. The plug-in is released under the MIT License.
Changelog
Version 1.02 - 27 Sept. 2016
- Added register for fly_excerpt Tag
register('fly_excerpt')for compatibility with Textpattern ver.4.6.0
Version 1.01 - 16 Feb. 2015
- Bugfix for Excerpt with HTML Code
Version 1.0 - 16 Feb. 2015
- Initial release