kentico_michal
-
10/30/2011 5:27:42 AM
RE:Track Custom Value within Kentico CMS Site
Hello,
The UserSettingsID field is ID of related record from CMS_UserSettings table. So, you should not override its value.
I would recommend you to add a custom field to CMS_User table using Site manager interface [Development -> System tables -> edit User table -> add a new attribute].
Then, you can access (set and get value) the new field using SetValue and TryGetValue of UserInfo class:
UserInfo.TryGetValue(string columnName, out object value)
UserInfo.SetValue(string columnName, object value)
Best regards, Michal Legen
|