Theme override views not just shapes

Topics: Core, Writing themes
Nov 16, 2012 at 6:51 PM

Whilst replacing shapes with your own markup in a theme is trivial, I haven't been able to find a way to replace the markup for a classic MVC view.

In particular, I'm looking at the view for the ChangePassword action in the Account Controller for Orchard.Users.

Am I missing something, or is is not possible to override views?

(If it isn't possible then I'll raise a bug, but I wanted to check that it wasn't just me first)

Nov 16, 2012 at 6:58 PM

You can. Just add a folder with the same name of the module to the Views folder of the theme. Then, add a subfolder of the controller's name, just as you would do when implementing a view for a regular MVC action.