Stats
Version
0.1
Wheels Compatibility
1.1.7
Downloads
57
Last Updated
April 3, 2012
About Plugins
Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.
Read Using and Creating Plugins for more information.
Flash Wrapper
Adds new parameters to flash() and flashMessages() so their output can be wrapped with custom HTML.
Author
Project Home
https://github.com/gregstallings/cfwheels-flash-wrapper
Description
This plugin adds new parameters to flash() and flashMessages() so their output can be wrapped with custom HTML.
Usage/Examples
* Adds parameters prepend and append to flash().
* If the flash key name is one of error, info, or success, and there is a class of alert existing in the prepend argument string, a Twitter Bootstrap compatible class of either alert-error, alert-info, or alert-success will be added to the element according to the flash key name.
* Adds parameters prependToValue and appendToValue to flashMessages().
* If a flash key name is one of error, info, or success, and there is a class of alert existing in the prependToValue argument string, a Twitter Bootstrap compatible class of either alert-error, alert-info, or alert-success will be added to the element according to the key name for each value in the flash.
Function default settings can be set from /config/settings.cfm or from any of the environment-specific settings files (e.g., /config/design/settings.cfm) using the set() function.
Examples can be found within the index.cfm file after installation.
