This project is read-only.

Override Contents View

Topics: General
Mar 17, 2012 at 11:10 AM
Edited Mar 17, 2012 at 11: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 12:20 PM
Edited Mar 17, 2012 at 12:40 PM

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

Mar 17, 2012 at 12:39 PM

Thank you!! :-)