I would Like to ask about adding a new information to a user he must fill during registration. What is the best practice, adding those fields directly to User table or create my user table in another database with my custom fields then connect the two User tables with an Id ?
Add the fields to the usersettings.
Don't add the fields directly in the database. Go to Modules > membership > Classes > User - Settings > Fields and add them there.
Modules > membership > Classes > User - Settings > Fields
Why not to go directly to Modules > membership > Classes > User > Fields ?
Modules > membership > Classes > User > Fields
Thanks guys for your answers :) . But if i added them through the fields it will add the fields directly to Database ? and if i have a foreign key to another table what should I do ?
Hi Yasmin, yes modifying the membership module as described by others will add a new field to the CMS_User table. Laura Frese has a great blog post on doing this here. In regards to making this new field a foreign key I would do this manually through SQL scripts after modifying the user class.
Please, sign in to be able to submit a new answer.