EE 1
EE 2
Excerpt

Developer

Jean-Francois Paradis

3rd Party (Free)

51 downloads (last 90 days)

MIT License Download v1.1.0

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
  • Entry API
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Display a text summary based on a given number of words or a given number of characters.

Excerpt - ExpressionEngine Plugin

Version: 1.1.0
Jean-Francois Paradis - http://github.com/skaimauve
Copyright (c) 2012 Jean-Francois Paradis
MIT License - please see LICENSE file included with this distribution
http://github.com/skaimauve/excerpt

Introduction

This plugin provides a similar functionality to the function the_excerpt() in Wordpress which allows developers to display a post summary based on the number of words. This implementation can also display a post summary based on a minimum number of characters (in that case, the cut will be done at the next word boundary), which works better with languages like Chinese for which the concept of words is different. An ellipsis ([...] by default) is added at the end of the excerpt.

If both measures are provided, the algorithm will try to use words, but will switch to character mode if the words are tool long (10 characters per word on average). This will prevent extra long excerpts and efficiently detect east-asian languages.

Setup

Download the “sk_excerpt” folder and upload it to the third party directory of your ExpressionEngine folder.

Usage

  • {exp:sk_excerpt chars=‘true’}{content}{/exp:sk_excerpt}  Use the default 200 characters
  • {exp:sk_excerpt chars=‘500’}{content}{/exp:sk_excerpt}  Use 500 characters
  • {exp:sk_excerpt words=‘true’}{content}{/exp:sk_excerpt}  Use the default 50 words
  • {exp:sk_excerpt words=‘55’}{content}{/exp:sk_excerpt}    Use 55 words
  • {exp:sk_excerpt words=‘55’ more=’...’}{content}{/exp:sk_excerpt}  Also change the ellipsis to ‘...’
  • {exp:sk_excerpt chars=‘500’ words=‘55’}{content}{/exp:sk_excerpt}  Use character mode when words are too long

Changelog

  • 1.1.0 - Added detection of East Asian language
  • 1.0.0 - Initial plugin

 

Download Excerpt

EE Version Downloads Add-On Version Release Date
2.+ Download 1.1.0 2012-09-07 11:56 AM

This entry was created September 6, 2012, 9:49 am.
This entry was last updated September 11, 2012, 3:09 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!

1 Review:

dkkma 06.25.13

Rating - {addon_rating_average}

Great Plugin. Works as advertised.

The download link appears to be outdated… You can find the latest version here: https://github.com/thinkclay/ExpressionEngine-Excerpt-Plugin