Umbraco: Adding Fields to Users / User Types

六月ゝ 毕业季﹏ 提交于 2019-12-12 22:55:42

问题


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:


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.



来源:https://stackoverflow.com/questions/11847272/umbraco-adding-fields-to-users-user-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!