Skip to content

amphibian/pi.name_wrangler.ee_addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Name Wrangler lets you use proper names in the format SURNAME, GIVEN NAME in the back-end (in order to faciliate proper sorting), but still display them in the the format GIVEN NAME SURNAME. It also allows you to display first, middle, and last names independently, in both singular and posessive forms, and to do this with both individual names and lists of ampersand- or "+"-separated names.

###Parameters:

  • type: the type of name(s) to return. Either "full", "first", "middle", "first+middle", or "last". Defaults to "full".
  • form: either "singular" or "posessive". Defaults to "singular".
  • multiple: if set to "off", Name Wrangler will not look for multiple names (useful for when you want to use ampersands within names).
  • and: word or character entity to use before the last name at the end of a list of names. Defaults to "&".

###Example use:

{exp:name_wrangler}Hedges, Chris{/exp:name_wrangler} consistently impresses me with his writing and journalism.

Returns "Chris Hedges consistently impresses me with his writing and journalism."

{exp:name_wrangler type="first" form="posessive"}Hedges, Chris{/exp:name_wrangler} latest book is a sobering read.

This returns "Chris' latest book is a sobering read."

{exp:name_wrangler type="last"}Hedges, Chris & Moore, Alan & Robinson, Kim Stanley{/exp:name_wrangler} are very different, but all must-read authors.

This returns "Hedges, Moore & Robinson are very different, but all must-read authors."

###Requirements

Name Wrangler is a plugin for the ExpressionEngine content management system, and has been tested with ExpressionEngine version 1.6.8.

About

Store proper names in their ideal format but still use them in all sorts of namey ways.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages