Kentico中Uniselector中的自定义表格

Nip*_*tha 3 c# asp.net content-management-system kentico

我一直在使用Kentico一段时间没有问题直到今天,这是我的问题

我想在uniselector中使用Custom表.

我是如何解决这个问题的,我需要使用自定义表单控件,例如在SiteManager-> Users Advanced过滤器中.我们有Add Roles,它会打开一个弹出窗口,显示所有角色的列表.

此webpart使用Uniselector

<cms:CMSUpdatePanel ID="pnlUpdate" runat="server">
    <ContentTemplate>
        <cms:UniSelector ObjectType="cms.role" SelectionMode="MultipleTextBox"
            OrderBy="RoleDisplayName" ResourcePrefix="roleselect" runat="server"
            ID="usRoles" ShortID="s" AllowEditTextBox="true" AddGlobalObjectSuffix="true" />
    </ContentTemplate>
</cms:CMSUpdatePanel>  
Run Code Online (Sandbox Code Playgroud)

现在,如果我使用

ObjectType="cms.role" 
Run Code Online (Sandbox Code Playgroud)

它工作正常,因为它是系统表

现在,如果我使用

ObjectType="customtable.country"
Run Code Online (Sandbox Code Playgroud)

这不行

任何帮助表示赞赏.提前致谢.

roc*_*cky 10

从版本7开始,您可以使用:

ObjectType="customtableitem.namespace.customtable"
Run Code Online (Sandbox Code Playgroud)

这将是

ObjectType="customtableitem.customtable.SampleTable"
Run Code Online (Sandbox Code Playgroud)

用于样本自定义表(来自企业样本站点).

如果您有任何其他问题,请随时与我联系.