Skip to content

ExpressionEngine plugin that wraps certain acronyms in tags automatically. Written as a tutorials for net.tutsplus.com

Notifications You must be signed in to change notification settings

erikreagan/er.auto_acronym.ee2_addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Notice

This plugin was written for a tutorial on net.tutsplus.com. It is not meant to be a plugin used on sites as it only has a minimal dictionary of acronyms. You can, however, add your own in and use it as you wish. The plugin was written for compatibility with ExpressionEngine 1.6.×. This version is compatible with ExpressionEngine 2.×.

by Erik Reagan

Instructions

Copy the auto_acronym directory into your system/expressionengine/third_party directory

Usage

The “dictionary” of acronyms is stored in an array within the plugins/pi.auto_acronym.php file.

Automatically turn a string into an HTML acronym if it is within our acronym dictionary. You can do this with individual words or large blocks of text.

Simple Example

{exp:auto_acronym data="HTML"}

This outputs:

HTML in your ExpressionEngine template.

Large Block Example

{exp:auto_acronym}

<p>My name is Erik and I am an addict. I stay up late into the night marking up HTML and CSS with magical alignment.
Whitespace speaks volumes of my care and finesse of the code. My RSS subscribers wait on their toes for my next
example of code beauty. Okay...not really.</p>

{/exp:auto_acronym}

This outputs:

My name is Erik and I am an addict. I stay up late into the night marking up HTML and CSS with magical alignment.
Whitespace speaks volumes of my care and finesse of the code. My RSS subscribers wait on their toes for my next
example of code beauty. Okay…not really.

About

ExpressionEngine plugin that wraps certain acronyms in tags automatically. Written as a tutorials for net.tutsplus.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages