Developer forum

Forum » Development » Custom property on user

Custom property on user

Oscar Romin
Oscar Romin
Reply

Hello!

I am trying to create a custom property on a user but I can't seem to find how to do it. 

I tried creating an item with my custom values on it and connecting it to a user group, but they don't show up in the frontend when I call TemplateTags, and they also don't show up under the custom fields area on the user but in the "General" area instead. 

So how can I create custom values on users and save values to them in the register-user form?

/Oscar


Replies

 
Nicolai Pedersen
Reply

Hi Oscar

Have you looked into the users documentation:

http://doc.dynamicweb.com/documentation-9/users/user-management/users#2563

Hope this can help you on your way, or let us know!

BR Nicolai

 
Oscar Romin
Oscar Romin
Reply

Yes, I have read that. It links to another page where I can read about User Groups, but I can't find anything about Custom Fields on that page except that I can extend the users properties with an item, which I have tried. If I do that the properties don't show up in my frontend when I call my TemplateTags-function, and I don't get anything if I do GetString("UserManagement:User.CustomField"). 

Am I missing something?

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Ok, that might be a wrong link.

You can find the information about custom user fields here: http://doc.dynamicweb.com/documentation-9/platform/advanced-settings/control-panel#2543

You should not use items for users.

BR Nicolai

Votes for this answer: 1
 
Oscar Romin
Oscar Romin
Reply

Ah, great! Exactly what I was looking for. Thank you very much! :) 

 

You must be logged in to post in the forum