UTF8 Field Length Protection
UTF8 Field Length Protection 1.0
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
- repo-2330.txt - 2.41 kb (166 downloads)
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 |




