marketo / silverstripe-textfieldtrimmer
This package is abandoned and no longer maintained.
No replacement package was suggested.
Add this SilverStripe extension to any DataObject to automatically trim() every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.
Package info
github.com/Marketo/SilverStripe-TextFieldTrimmer
Type:silverstripe-module
pkg:composer/marketo/silverstripe-textfieldtrimmer
dev-master
2016-02-22 18:07 UTC
Requires
This package is not auto-updated.
Last update: 2024-03-15 17:17:17 UTC
README
Description
Add this SilverStripe extension to any DataObject to automatically trim() every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.
#Installation
- copy the 'textfieldtrimmer' folder to the document root
- rebuild the manifest using /dev/build/?flush=all
- in the project code: on any DataObject that needs text fields trimmed, indicate that the DataObject is an 'extension' of TextFieldTrimmer, for example:
class Category extends DataObject { static $extensions = array( 'TextFieldTrimmer', ); ... }