IV Custom Number
Developer
3rd Party (Free)
3 downloads (last 90 days)
EE Version Support
- ExpressionEngine 1.x
Compatibility
If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.
- Updater
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Content Elements
- Better Workflow
- Matrix
- Grid
- Webservice
- Publisher
Requirements
- jQuery for the Control Panel
Add-On Type(s)
Plugin
Tags
This is a very simple and easily customizable plugin to change number's format. Useful for multi-language sites when a number has to be shown in different formats.
This was my real case use:
{if '{country_code}' == 'en'}
{exp:iv_custom_number number="{number}" decimals="2" decimal_sep="." thousands_sep=","}
{if:else}
{exp:iv_custom_number number="{number}" decimals="2" decimal_sep="," thousands_sep="."}
{/if}
Parameters:
-number: Required. The number to be formatted (this one could be passed as tagdata too);
-decimals: Optional. Decimal length. Default 0;
-decimal_sep: Optional. Decimal Separator. Default ‘,’;
-thousands_sep: Optional. Thousands Separator. Default ‘.’;
-debug: Optional (y/n). Shows debug info. Default ‘n’;
Examples:
{exp:iv_custom_number number="1234.56"}
prints: 1,235
{exp:iv_custom_number number="1234.56" decimals="2" decimal_sep="." thousands_sep=","}
prints: 1,234.56
{exp:iv_custom_number decimals="2"}1234.56{/exp:iv_custom_number}
prints: 1,234.56
Download IV Custom Number
EE Support | Downloads | Add-On Version | Release Date |
---|---|---|---|
Not Specified | Download | 1.0 |
This entry was created March 27, 2014, 2:58 pm.
This entry was last updated March 27, 2014, 3:02 pm.
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!
Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!