This project is read-only.

Hello World in Different Position in Theme

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

I was reading the tutorial 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.

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:

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.

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.