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">
        @Display(Model.Actions)
     </div>
and other stuff (like classes, ...)

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

Developer
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 http://docs.orchardproject.net/Documentation/Alternates

Mar 17, 2012 at 12:39 PM

Thank you!! :-)