Umbraco:向用户/用户类型添加字段 [英] Umbraco: Adding Fields to Users / User Types

查看:126
本文介绍了Umbraco:向用户/用户类型添加字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

扩展用户区域的最佳方法是什么?我想向用户类型添加一个字段,您必须为每种特定类型选择一个管理员(按用户类型)。我没有看到任何方法来扩展这个区域,是否必须在源代码中完成。

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?

推荐答案

没有办法扩展用户添加更多我知道的属性。您可以在Umbraco数据库中创建一个新表,然后使用XLST扩展或C#类获取Razor宏或用户控件中的扩展属性。 ,您必须在用户部分(或自定义部分)中创建自定义文件夹,以允许编辑Umbraco中的扩展属性。

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.

这篇关于Umbraco:向用户/用户类型添加字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆