无法在Kentico 12中创建新的MVC小部件 [英] Unable to Create New MVC Widget in Kentico 12

查看:82
本文介绍了无法在Kentico 12中创建新的MVC小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个名为图像摘要部分"的新小部件.我处于起步阶段,我只是想在将小部件添加到页面时使小部件出现在小部件列表中.相反,我只是得到了尚未创建的现有小部件:

I'm trying to create a new widget called "Image Summary Section". I'm at the very beginning stages and I'm just trying to get the widget to appear in the list of widgets when adding widgets to the page. Instead, I just get existing widgets that I didn't create:

您可以看到我已经创建了一个实现IWidgetProperties的类,并且为此调用了RegisterWidget.我还创建了_ImageSummarySection.cshtml(尽管,我不希望仅仅为了使小部件出现在小部件选择对话框中).

You can see that I've created a class that implements IWidgetProperties and that I've called RegisterWidget for it. I've also created _ImageSummarySection.cshtml (though, I wouldn't expect that to be necessary just for the widget to appear in the widget selection dialog).

最上面的解决方案用于MVC网站,最下面的解决方案用于Kentico CMS.两者都在运行,并且显示的浏览器是Kentico CMS(我试图在此屏幕截图中添加我的新窗口小部件,但它不在窗口小部件列表中).

The top solution is for the MVC website, and the bottom solution is for the Kentico CMS. Both are running, and the browser shown is the Kentico CMS (I'm trying to add my new widget in this screenshot, but it's not in the list of widgets).

任何关于我做错事情的想法吗? 如何使我的窗口小部件显示在窗口小部件列表中?

Any idea of what I'm doing wrong? How can I get my widget to appear in the list of widgets?

其他信息:

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