Override Contents View

Topics: General
Mar 17, 2012 at 10:10 AM
Edited Mar 17, 2012 at 10:11 AM

I want to override Content.Summary.cshtml with a custom view that I place in my module or my theme.. Is there a way ?

I need to add 

<div class="related">
and other stuff (like classes, ...)

and I don't want modify the original view in the Orchard Core..
Thank you

Mar 17, 2012 at 11:20 AM
Edited Mar 17, 2012 at 11:40 AM

If you put Content.Summary.cshtml in the Views folder of your theme, then that view will always override the one from the module. If you want to override said view from within your custom module, then you would need to make use of an alternate that is more specific than the default view. See http://docs.orchardproject.net/Documentation/Alternates

Mar 17, 2012 at 11:39 AM

Thank you!! :-)