使用 Orchard 创建模块
“创建模块”演练for Orchard 不适用于 Orchard Mercurial 存储库 头部的代码默认或开发分支。有人知道如何使用 3 月份 0.1 版本之后的版本创建新的 Orchard 模块吗?
如果源代码中有一个更新的示例模块,那就太好了,但除了内置模块之外,我看不到任何其他模块,这些模块不与主菜单相关联,而且都非常复杂 - 一个“你好世界” ' 一个会好得多!
我意识到 Orchard 尚未正式发布,但我正在尝试将它用于我刚刚开始的新项目的简单 CMS(希望我能够在发布时使其与更高版本的 Orchard 一起使用) )。
The 'create a module' walkthrough for Orchard doesn't work with the code in the Orchard Mercurial repository at the head of the default or dev branches. Anyone know how I can create a new Orchard module with something later than the 0.1 release from March?
It'd be great if there was an updated sample module available in the source somewhere, but I can't see any apart from the builtin modules, which don't tie into the main menu and are all very complicated - a 'hello world' one would be much better!
I realise Orchard's not officially released, yet, but I'm trying to use it for a simple CMS for a new project I'm just starting (hopefully I'd be able to get it working with a later version of Orchard by release time).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了。有一个新的配置设置,可让您打开和关闭模块。现在默认禁用模块。
您可以在管理>中打开模块特征。
Found it. There's a new configuration setting that lets you turn on and off modules. Modules are now disabled by default.
You can turn modules on in admin > features.
8 年后,我们使用 Orchard 1.10.x,创建模块的方法之一是通过命令行。步骤如下:
可以在此处
After 8 years we are using Orchard 1.10.x and one of the ways to create a module is via command line. Here are the steps:
You can get more information here