Home  Extras  MODx Add-Ons  UTF8 Field Length Protection

Product:

UTF8 Field Length Protection


Forums Support Thread Votes: 46
Tags: Forms, Internationalization, plugin, manager, editing
Submitted: Jan 6, 2009
Released: Jan 6, 2009
Downloads: 166
License: GPL - GNU Public

Works with:

UTF8 Field Length Protection 1.0 | Author: PMS

Warns if too many characters are entered into a manager field by changing the background colour of the field to red.

Use to prevent bad truncation of strings when using using multibyte characters on UTF-8 encoded websites.


Download


Description

* For UTF8 encoded websites.
* Changes the background colour of a field to red to warn if the number of characters entered would make the UTF8 byte stream exceed the maximum length allowed by the MODx mysql database definition.
* Assumes that the original field background colour is white.
* Fields checked: pagetitle, longtitle, description, alias, link_attributes, menutitle
* See the forum thread: http://modxcms.com/forums/index.php/topic,31507

Instructions

1. Create a new plugin.
Plugin name: UTF8 Field Length Protection
Description: <strong>1.0</strong> Warns if a manager field contains too many characters
2. Copy and paste the attached text file into the plugin code area.
3. On the System Events tab, check the OnDocFormRender event.




Released Versions

Releases that are grayed out are deprecated.

Version Released Author Downloads
Total Versions: 1 Total Downloads: 166
1.0 Jan 06, 2009 pms 166

Download Statistics

Package downloads per day since tracking began on June 27th, 2010. Weekends are colored. Plot below shows an overview.


Top Countries

This is a list of the countries most downloading this Extra.

Country Downloads
United States 3
 
 
 

Contact Us | Advertise | Team Blog | FAQ | Credits

© 2005-2010 MODx, LLC. All rights reserved. Privacy Policy | Terms of Service