Excerpt

Developer

Clayton McIlrath

3rd Party (Free)

6 downloads (last 90 days)

MIT License Download v1.0.2

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Wrap anything you want to be processed between the tag pairs. This will strip out all tags automatically and do a limit on words after.

Excerpt Plugin

Wrap anything you want to be processed between the tag pairs. This will strip out all tags automatically and do a limit on words after.

{exp:excerpt limit="50"}text you want processed{/exp:excerpt}

Parameters

Use the following parameters to specify what the plugin should return.

limit=“5”

The limit parameter lets you specify how many words or characters to return. Default 500

limit_type=“words”

The limit_type parameter lets you specify if you want to limit to words (words) or characters (chars).
When limiting to chars, the plugin returns whole words, so the actual number of charactars migh be slightly larger.

{exp:excerpt limit="2" limit_type="chars"}Hello World{/exp:excerpt}
returns: Hello

indicator=”...”

The indicator parameter can be used to append characters onto the end of the content, if it has been limited.

{exp:excerpt limit="1" indicator="..."}Hello World{/exp:excerpt}
more than limit words, returns: Hello…

{exp:excerpt limit="2" indicator="..."}Hello World{/exp:excerpt}
Not limited, returns: Hello World

Changelog

 Version 1.0.2

  • Added limit_type = words | chars

 Version 1.0.1

  • Added indicator parameter

Version 1.0

  • Initial release

Humans.txt
thinkclay, bryantAXS, GDmac

Download Excerpt

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.0.2 Apr 10, 2013

Excerpt Links

This entry was created January 31, 2011, 1:35 pm.
This entry was last updated April 10, 2013, 3:10 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

1 Review:

Rick Lecoat 03.06.14

Rick Lecoat
Rating - {addon_rating_average}

This is useful. One thing that would earn it an extra star would be the expanded code-handling within the ‘indicator’ parameter. Currently it seems to stumble over any code that requires an attribute (eg. an <em> element works but an <a> element won’t) which makes linked ‘indicators’ impossible.