Umbraco: Adding Fields to Users / User Types

2019-08-05 08:01发布

What's the best way to extend the users area? I want to add a field to the User Types where you must select an Administrator (by User Type) for each particular type. I don't see any way to extend this area, does it have to be done in the source code?

1条回答
Lonely孤独者°
2楼-- · 2019-08-05 08:32

There is no way to extend a User to add more properties that I"m aware of. You could create a new table in the Umbraco database and then use an XLST Extension or C# class to get the extended properties in a Razor macro or User Control. However, you would have to create a custom folder in the Users section (or a custom section) to allow editing of the extended properties in Umbraco.

查看更多
登录 后发表回答