I am using MODx Revolution 2.1.0-pl and the Login add-on. I am working on a site where users can create a profile with a lot of fields that are not in the database by default. I have added columns for these fields to the user_attributes table. However, when someone registers as a new user, all the extra fields end up in the column ’extended’. Maybe I should have understood that from the documentation (particularly
http://rtfm.modx.com/display/ADDON/Login.Using+Custom+Fields) but I guess I didn’t read it carefully enough or maybe I just missed the point
Anyway, I am kind of unsure what to do now. I am thinking of two possibilities:
1. Leave everything the way it is. Remove the new columns from the database (which are not used anyway). Problem is that visitors to the site need to be able to search through the accounts, with the new fields as search criteria. Since they’re all lumped together in the ’extended’ column, I don’t know if that is even possible. I think it probably is, since you can view the new fields when you use the Profile snippet from the Login add-on. But I don’t really understand how this works.
2. Figure out a way to add the new fields in new database columns instead of the ’extended’ column. Not sure how to do that: change the schema.xml? But I read somewhere (I think, can’t find it now) that this would make it impossible to update MODx. So maybe that’s a bad idea.
I hope I’ve explained my problem clearly. What do you think would be the best thing to do?