EE 1
EE 2
Ending

Developer

Mark Spurlock

3rd Party (Free)

33 downloads (last 90 days)

Creative Commons Attribution Non-Commercial Download v1.0

Compatibility

  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Better Workflow
  • Matrix

Requirements

  • jQuery for the Control Panel

Categories

Plugin

Tags

Outputs just the end of a string. Like character limit in reverse. You can use it to select a certain number of characters from the end, or tell it to look for a particular substring and have it select everything after that (for example, selecting everything after the "@" in an email address to get the email provider).

Usage

Use this plugin to return just the end of a string. There are 2 ways of using the plugin. The first is “limit”, which returns the last N letters of the string. For example:

{exp:ending limit=“3”}robot.jpg{/exp:ending}

Will print out “jpg”.

The second mode is “until”. In this mode, the plugin will start at the end of the string, and move backwards until it encounters the character or string it’s looking for, then return everything after it:

{exp:ending until=”@”}alice@yahoo.com{/exp:ending}

Will print out “yahoo.com”. If you wish to also include the character or string being searched for, just use “include”:

{exp:ending until=”@” include=“yes”}alice@yahoo.com{/exp:ending}

This will print out “@yahoo.com”.

If you use “until” and “limit”, the “until” function will be applied first, and the limit function will then shorten the resulting string from the end.

Download Ending

EE Version Downloads Add-On Version Release Date
1.x Download 1.0 2012-06-20 04:28 PM

Ending Links

This entry was created June 21, 2012, 11:03 am.
This entry was last updated June 21, 2012, 6:02 am.

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!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!