[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
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.
Re: new data in tl_user table
Thanks, that's the perfect answer!