Hi Guys,
How should I get the values from User custom fields in a regular page without having to put the Extranet module in a paragraph?
dwtemplatetags=true does not give any clue on how to acces those fields.
Thanks,
Adrian
Hi Guys,
How should I get the values from User custom fields in a regular page without having to put the Extranet module in a paragraph?
dwtemplatetags=true does not give any clue on how to acces those fields.
Thanks,
Adrian
Hi Adrian
Currently only in Razor:
Modules.UserManagement.User user = Modules.UserManagement.User.Current(Modules.UserManagement.PagePermissionLevels.Frontend);
if ((user != null)) {
foreach (Modules.Common.CustomFields.CustomFieldValue cfv in user.CustomFieldValues) {
cfv.CustomField.Name;
cfv.Value;
}
Thanks a lot Nicolai
You must be logged in to post in the forum