Override Shapes

Aug 2, 2013 at 8:49 PM
Hey Nick,

How would I go about overriding the Views for this module now? I dropped OpenAuthLogOn into the Views folder of my theme and the page came up blank. I assumed this was because of the includes in the shape...@using DotNetOpenAuth.AspNet...which of course I don't have a reference to in my theme.

I also tried creating a folder in my theme's Views folder named NGM.OpenAuthentication and dropping OpenAuthLogOn in there. Orchard didn't pick it up though and displayed the default one from your module.

Any ideas? Thanks!
Aug 2, 2013 at 8:55 PM
I put it back in the Views folder of my theme and removed the @using DotNetOpenAuth.Asp.Net and the shape rendered.

Do you know what I might potentially be breaking by removing this reference in the View? Thanks!
Aug 2, 2013 at 8:55 PM
Hey bro,

You know I always say a working example is the best example, and for you - I have a working one!!

Check out my public theme.... https://github.com/Jetski5822/orchard-forum-theme

And in particular this file... https://github.com/Jetski5822/orchard-forum-theme/blob/master/Views/OpenAuthLogOn.cshtml

Nick
Aug 2, 2013 at 8:56 PM
About the reference, no idea!!... I am not even sure its required.
Aug 2, 2013 at 10:08 PM
You are DA MAN!

That's awesome...THANKS! I love working examples.