Results 1 to 4 of 4

Thread: text checking with -> 'rgxp'=>'email'

  1. #1
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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

  3. #3
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: text checking with -> 'rgxp'=>'email'

    Hi thyon,
    thx for the fast answer.

    I will look into it.. maybe i get it *g*

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  4. #4
    New user
    Join Date
    07-01-09.
    Posts
    19

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •