How to display View into a specific Zone/Shape

Topics: Customizing Orchard, Writing modules, Writing themes
Aug 25, 2013 at 6:49 PM
In my module, I created a route, controller and view for the action.

When I visit the page, all I get is the contents of the view. Is there a way to display that specific view into a zone in the template/theme? Or if possible, a specific shape?
Aug 25, 2013 at 8:22 PM
What you're looking for is the [Themed] attribute that you can add to actions or even the whole controller.
Aug 25, 2013 at 8:48 PM
Aug 26, 2013 at 2:34 AM
Thanks @Piedone! Can we specify the zone where to display the view though?
Aug 26, 2013 at 5:46 AM
for that, you'll need to create a widget.
but I also would like to know whether orchard could support your scenario as well. It would be great if it can.

Aug 26, 2013 at 6:49 AM
This shows how to do it from a driver, but it applies just as well from a controller action: