Giter VIP home page Giter VIP logo

expressionengine-excerpt-plugin's Introduction

#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

expressionengine-excerpt-plugin's People

Contributors

thinkclay avatar alettieri avatar bryantaxs avatar gdmac avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.