我是 SilverStripe 的新手。
我想知道一个可以开始为 SilverStripe 制作模块的好地方;一些很好的教程让我开始。
SilverStripe 模块几乎可以做任何事情,所以很难说从哪里开始。
以下 Wiki 页面包含一些非常基本的启动信息:
除此之外,我建议阅读有关如何使用ModelAdmin在 CMS 中创建简单的管理界面的内容,并可能仔细查看API 文档以了解可用的内容。
但是,模块与任何其他站点功能(甚至主题)没有本质上的不同——它们都使用相同的 API 和结构——所以也许下载一些流行的模块来看看它们是如何构建的。
最后,SSBits也是一个特别好的 SilverStripe 提示和教程网站,SilverStripe论坛和IRC 频道也很有用。
我推荐 SilverStripe 的书《CMS 开发的完整指南》,你可以在 Amazon 上找到它,或者在 Google Books 上在线查看它,它不是一个完整的参考书,而是一个模块开发的良好开端。它有许多示例,使用完整的示例项目(带有可下载的代码)和一些用于频繁任务的额外配方。
这里有一些最新的资源...
模块结构:
http://docs.silverstripe.org/en/developer_guides/extending/modules/
发布模块:
http://docs.silverstripe.org/en/developer_guides/extending/how_tos/publish_a_module/
SilverStripe 视频课程:
If you're still unsure, I can recomment the book "SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner's Guide" - targeting the current SilverStripe version.
Disclaimer: I'm the author of the book, but given the title it should fit your requirements well...