[TYPO3-german] [formhandler] Validator - containsOnly - Whitespace

Daniel Ziegenberg daniel at ziegenberg.at
Thu Sep 2 12:25:22 CEST 2010


Hallo!

Mitlerweile bin ich bei den ErrorChecks angelangt und es funktioniert soweit auch alles wie gewünscht (bzw. dokumentiert). Nur weiß ich nicht wie ich dem "containsOnly"-Check beibringen kann, dass in Telefonnummern auch Leerzeichen erlaubt sind. Irgendjemand eine Idee? So funktionierts jedenfalls nicht, hätte mich aber auch gewundert, wenn doch...

plugin.Tx_Formhandler.settings {
    validators {
        1.class = Tx_Formhandler_Validator_Default
        1.config.fieldConf {
            phone.errorCheck {
                1 = containsOnly
                1.words = 1,2,3,4,5,6,7,8,9,0,+,/,(,),-, ,
            }
        }
    }
}

Ein "phone" Check wäre eigentlich auch mal ein nettes Feature.

lg, Daniel


More information about the TYPO3-german mailing list