None ContentPart Module

Topics: Customizing Orchard, Writing modules
Feb 6, 2012 at 9:37 PM

I'm writing a donation form module but, as a Module (ContentPart) I will end up creating a new Page ContentType. I am curious to know if there is a way to create a module that simply returns a View() ????

Ideally I would like to have this Module be a 'hard coded' URL for the donation form. ie ( domain/donate ) 

Feb 6, 2012 at 9:46 PM

Just create an IRouteProvider (you'll find a lot of examples, in Routes.cs) with the desired route. Then in your controller, you should return a ShapeResult() so that the template will be a shape, and any custom theme could override it easily.

Feb 6, 2012 at 10:06 PM


I figured there was a way. I'm still learning and/or getting familiar with Orchard architecture.