Orchard CMS 完整指南 [英] A full guide to Orchard CMS

查看:52
本文介绍了Orchard CMS 完整指南的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在 Orchard 开发一个非常简单的网站,但这需要我用主题和内容类型/小部件扩展它.现在这就是我所能做的 - 内容类型和小部件,因为它们是官方文档中唯一要详细解释的.我已经查看了很多其他问题的答案,例如如何覆盖列表的默认布局,或如何在内容类型中使用自定义字段,并在代码.后者其实是我决定开这个帖子的动机.

I am currently developing a very simple website in Orchard, which however required me to extend it both with themes, and with content types/widgets. Now this is as far as I went - Content Types and Widgets, because they were the only ones to be explained in detail in the official documentation. I've looked A LOT for answers to other questions, like How to override the default layout of a list, or How to use a custom field inside a content type, and refer to it in the code. The later is actually the motive I decided to open this thread.

如何在内容类型中使用自定义字段,并在代码中引用它?这相当简单:我有一个小部件,它应该支持图像附件功能——作者上传了一个图像——它会在特定的位置显示给用户.我找到了 Image Field 模块,我想使用它.所以我想我应该枚举依赖项,但是接下来呢?

How to use a custom field inside a content type, and refer to it in the code? It's fairly simple: I got a widget, which should support image attachment functionality - the author uploads an image - it gets shown to the user in a specific spot. I found the Image Field module, and I want to use that. So I figured out that I should enumerate the dependencies, but what next?

我已经浪费了 2 天(每天 14 小时)的生产时间在这样的事情上.不是阅读索引指南,而是阅读大量代码,谷歌搜索数百个博客,换句话说,就是大海捞针.我是否必须理解整个代码才能扩展它?我想成为该产品的实施者,而不是开发者,我相信很多人也这样做.

I've wasted already 2 days (14 hours each) of my productive time on stuff like this. Not reading an indexed guide, but reading tons of code, googling hundreds of blogs, in other words searching for a needle in the haystack. Do I have to understand the whole code to extend it? I want to be an implementer, not a developer for this product, and I'm sure that a lot of people also do.

怎么了?我看到人们在 Orchard 上开发了一些非常好的东西.从我看来——他们是自由人——不隶属于该项目.他们是从某个地方学到的.我试图向他们学习,但他们的代码几乎与教程无关.我感到完全失落和沮丧.请帮我解决这个问题.

What's wrong? I see people developing some pretty nice stuff on Orchard. And from what I see - they are free people - not affiliated with the project. They learned it from somewhere. I tried to learn from them, but their code has almost nothing to do with the tutorials. I feel totally lost and frustrated. Please help me beat the situation.

有什么地方可以找到更完整的 Orchard CMS 指南吗?阅读规范,如 MSDN,看看我在编写教程中的代码时到底在做什么.

Is there somewhere I could find a more complete guide to Orchard CMS? To read the specs, like in MSDN, to see what the hell I am doing while writing that code from the tutorial.

谢谢.

附注
我知道在这个网站上,我应该公开有关我遇到的具体困难的问题.然而我没有一个,而是很多,而且它们都显得微不足道.它们是通常用RTFM"回答的问题.所以我决定从头开始解决这个问题,问问大家有没有人看过那个FM".

P.S.
I know that on this site I am expected to expose the question about the concrete difficulty I am having. However I have not one, but many, and they all seem trivial. They are the kind of questions that usually get answered with a "RTFM". So I decided to take the problem from the top and ask you all if anyone of you has seen that "FM".

推荐答案

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