Kentico 定制模块开发
我刚刚从 Sitefinity 切换到 Kentico CMS。 到目前为止,我真的很喜欢 CMS,但我遇到了一些问题 我找到了这个
http://www.kentico.com/docs/devguide/custom_modules。嗯 但它几乎没有用,因为它没有显示如何像博客模块那样从现有类实现扩展。
在 Sitefinity 3.7 中,有用于自定义模块和文档类型的样板代码,但我找不到 Kentico 的任何样板代码。 我尝试查看 CMSModules/Blogs 模块,但无法复制,因为我没有 CMS.Blogs 命名空间中的类?
I'm just made the switch from Sitefinity to Kentico CMS.
I really like the CMS so far but I'm having a few issues
I've found this
http://www.kentico.com/docs/devguide/custom_modules.htm
but its hardly useful since it doesn't show how to implement the extend from the existing classes like the Blogs module does.
In Sitefinity 3.7 there was boiler plate code for a custom module and document type but I can't find any for Kentico.
I've tried to look at the CMSModules/Blogs Module but its impossible to replicate since I don't have the classes from the CMS.Blogs namespace?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于初学者来说,如果您想检查各个模块的编译代码,您可以使用 Reflector、DotPeek、ILSpay 或任何其他反射/反编译应用程序来查看代码。 Kentico 非常友好,他们不会做任何事情来阻止您了解幕后发生的事情。
虽然您可能想查看编译后的代码,但它们并没有做任何太花哨的事情。我相信他们所有的类都只是使用他们的标准 API 类。所以他们并没有向你隐瞒任何“魔法”。
至于创建自定义模块,没有示例,因为自定义模块几乎可以是任何东西。在简单的层面上,您可以通过 Google IFrame 并将其称为自定义模块。或者,您可以创建一个“真正的”自定义模块,具有自定义界面、Kentico UI 的外观和感觉、权限以及导入/导出功能。就官方而言...自定义模块只是一组用户界面元素,您可以将其添加到 CMS Desk 或 CMS Site Manager 的不同区域。
自定义模块可以是文档类型、Web 部件、自定义管理页面、自定义代码和封装一组功能的权限的任意组合。没有任何一种方法可以制作自定义模块。
如果您确实想看看其他人做了什么,请查看 Kentico Marketplace,看看是否有任何可以剖析的自定义模块。另外,我相信 Thom Robbins 有一篇关于制作 Twitter 集成(您可以称之为模块)的博客文章。
希望有帮助!
For starters, if you want to examine the compiled code for the various modules you can use Reflector, DotPeek, ILSpay, or any other reflection/decompilation app to see the code. Kentico is very friendly and they don't do anything to prevent you from seeing what is going on under the hood.
While you may want to look at the compiled code, they don't do anything too fancy. I believe that all of their classes simply use their standard API classes. So there isn't any "magic" they are hiding from you.
As far as creating a custom module, there isn't a sample because a custom module can be almost anything. On a simple level, you can IFrame Google and call it a custom module. Or you can create a "real" custom module with a custom interface, the look and feel of Kentico's UI, permissions, and import/export capabilities. As far as what is official... a Custom Module is simply a set of user interface elements that you can add to the different areas of the CMS Desk or CMS Site Manager.
A custom module can be any combination of document types, web parts, custom admin pages, custom code, and permissions that encapsulate a set of functionality. There isn't any one way to make a custom module.
If you did want to see what others have done, check out the Kentico Marketplace and see if there are any custom modules you can dissect. Also, I believe that Thom Robbins had a blog post about making a Twitter integration (which you could call a module).
Hope that helps!