2017 © Pedro Peláez
 

silverstripe-module silverstripe-textfieldtrimmer

Add this SilverStripe extension to any DataObject to automatically trim() every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.

image

marketo/silverstripe-textfieldtrimmer

Add this SilverStripe extension to any DataObject to automatically trim() every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.

  • Monday, February 22, 2016
  • by nyeholt
  • Repository
  • 23 Watchers
  • 3 Stars
  • 2,744 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

TextFieldTrimmer-for-SilverStripe

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., (*1)

Installation

  1. copy the 'textfieldtrimmer' folder to the document root
  2. rebuild the manifest using /dev/build/?flush=all
  3. 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',
    );
    ...
}

The Versions

22/02 2016

dev-master

9999999-dev

Add this SilverStripe extension to any DataObject to automatically trim() every text (ie, HTMLText, Text, VarChar) field before data is saved to the database.

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan J. Brauer
by Steve Vu

silverstripe textfield trimmer