Hello World in Different Position in Theme

Topics: Customizing Orchard
Jul 18, 2012 at 5:39 PM

I was reading the tutorial http://docs.orchardproject.net/Documentation/Building-a-hello-world-module and I noticed that it puts the "hello world" in the content part of the theme.  How do I put a model in a different "position" such as in the header or footer?  Thanks for your help.

Coordinator
Jul 23, 2012 at 12:28 PM
Edited Jul 23, 2012 at 12:30 PM

You would have to create a shape and add it to Layout.WhateverZoneYouWant

In this post, I'm doing it from a driver, but it can also be done from a controller action:

http://weblogs.asp.net/bleroy/archive/2011/03/26/dispatching-orchard-shapes-to-arbitrary-zones.aspx

Jul 23, 2012 at 7:35 PM

To solve this, all I think I did was convert the module to a widget.  Then, I put the widget in a specific location.

Coordinator
Jul 23, 2012 at 7:49 PM

Oh sure, if you can and are willing to do it from a widget that's clearly the simplest solution.