views:

76

answers:

4

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).

+1  A: 

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.

Ian Grainger
A: 

I don't see my module there.

Basically I followed the walkthrough, but instead of adding a new ASP.NET MVC Area, I added an empty ASP.NET MVC Web application.

Then I created a module.txt and added a HomeController with a Index view. Created a MainMenu class which implements INavigationProvider interface.

When I pressed F5 and run. Couldn't see the module I created inside.

Am I missing anything?

Patrick Yong
A: 

Have you created it in the modules subfolder checked in admin > features? I'd suggest Googleing for 'create orchard module in separate project', follow that guide and then make sure the module is enabled in admin > features. Good luck! (we gave up with Orchard in the end, its not ready for prime-time, yet)

Ian Grainger
+1  A: 

Hi Ian,

Orchard 0.5 or beta just released last night, you can check out my blog where I actually change the original toturial to have it work on the latest change set. There might be somre more changes to come but it's a good start. Works with changes set a week ago :)

http://patrickyong.net/2010/07/26/a-7-part-tutorial-on-project-orchard-based-on-the-latest-change-set/

Patrick Yong