Tales from the Evil Empire

Bertrand Le Roy's blog

News


Bertrand Le Roy

BoudinFatal's Gamercard

Tales from the Evil Empire - Blogged

Blogs I read

My other stuff

Archives

How Orchard works

(c) Bertrand Le Roy I just finished writing a long documentation topic on the Orchard project wiki that aims at being a good starting point for developers who want to understand the architecture, structure and general philosophy behind the Orchard CMS.

It is not required reading for anyone who only wants to write Orchard modules and themes but hopefully it will help people who want to evaluate the platform and start writing patches.

Read it here:
http://orchardproject.net/docs/How-Orchard-works.ashx

Comments

Steve said:

Seems rather complex with a whole new set of terms and languages I'm not familiar with.

Honestly I had a difficult time reading it - ie an object described as 'cheap' at first sounds good but then I'm left wondering what cheap objects really are.

I'm also trying to figure out how normal items we discuss like 'modules' - are they MEF? Are they 'Areas' ?  How does this differ from when we had Sharepoint zones, parts, sites, pages (note the familiar terms) and then previewing,authoring, validating content and how content is delivered ?

I'll go read through it again and see if I can wrap my head around the abstractness of the content.

Thanks

# June 15, 2010 9:05 PM

JeroenH said:

This is a very useful article. It's what I missed in order to grasp the fundamental design of Orchard. Thanks for this!

I have one reservation at this point: why exactly do you have to inherit your interface from IDependency for injectable dependencies? It's not a very big problem, but still seems a limitation. Does this leak to module development as well?

# June 16, 2010 3:36 AM

Victor Kornov said:

Overall, the doc is pretty good ;) It asnwers the "how" but lacks on the "why" part.

E.g. Dependecny Injection. I'm not sure why the IDepency interface is required. I'm not familiar with Autofac yet the way Orchard requires to specify objects lifetime through IXXXDependency is a bit strange. Clearly, there are cases where an object assumes a certain lifetime to fulfill it's goal. In that case it's a good thing to explicitly specify it's lifetime through an interface. But for other cases where object's purpose doesn't depend so obviously on the lifetime? I.e. it's very much possible that the objects author at inception can't tell for sure the required lifetime. In that case it's better to leave that decision to external component. That adds flexibility (as mentioned above) and makes it less of a breaking change to change objects lifetime later.

# June 16, 2010 6:15 AM

Bertrand Le Roy said:

@Gauthier: thanks for the great feedback. I applied most of it. Feel free to edit the document on the wiki if you want to improve some parts further :)

# June 16, 2010 2:30 PM

Bertrand Le Roy said:

@Gauthier: thanks. Could you please submit a patch following the instructions on this page? orchard.codeplex.com/wikipage

# June 20, 2010 7:29 PM