Results 1 to 3 of 3

Thread: [resolved] new data in tl_user table

  1. #1
    User
    Join Date
    11-23-09.
    Location
    Valais, Switzerland
    Posts
    77

    Default [resolved] new data in tl_user table

    hello

    I need to add data in tl_user table in an new module. It is very easy to add data in existing tables with de database.sql script.

    But what is the best practice to add this new field in the tl_user DCA? I can not modify the "tl_user dca file", because on the next update of Contao everything will be deleted.

    So what the best practive in Contao to add new personal field to user?

    thanks

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: new data in tl_user table

    In /system/modules/yourCustomModule/dca/, you can add a file named "tl_user.php".

    Any additions or modifications you put in that file will override what's in the original file.

    The key is the file name -- it has to match the original file name. You can customize multiple DCAs with separate files.
    Brian

  3. #3
    User
    Join Date
    11-23-09.
    Location
    Valais, Switzerland
    Posts
    77

    Default Re: new data in tl_user table

    Thanks, that's the perfect answer!

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
  •