text checking with -> 'rgxp'=>'email'
Hi everyone,
i search for a point in the catalog 2 where i can make a custom checking for a textfield like 'rgxp'=>'email'.
The only thing i found was 'Using Formatting on a text, number or decimal field' but thats not the right one i'm looking for.
I wonder if something like that is not in the catalog ^^
Ore must i manage this in the dca?
regards
Re: text checking with -> 'rgxp'=>'email'
Because s.c.a.r.e. originally decided to build the catalog on field-types in the DB, rather than inputTypes in TL, not all datafields can map 100% to a TL field.
Adding should be relatively simple, as the dca setup is done per field-type, so just have some BE field say:
Regular Expression:
[ - ]
[ E-mail ]
[ Url ]
[ Phone ]
[ Alpha-numeric ]
....
Then that can just be mapped to the regexp in the configText(() method in Catalog.php.
Its of course also possible to make your own custom field that will only allow e-mail
Re: text checking with -> 'rgxp'=>'email'
Hi thyon,
thx for the fast answer.
I will look into it.. maybe i get it *g*
regards
Re: text checking with -> 'rgxp'=>'email'
Just for completeness.
I have added dca_config.php compatibility some days ago into trunk.
Please grab it via svn and test.
Regards
Chris