This project is read-only.

Overriding BodyPart Text Editor

Topics: Customizing Orchard
Jan 26, 2013 at 5:34 AM

I'm looking to override the BodyPart text box used in the back-end administration form.  I am able to override the file Orchard.Core/Common/Views/EditorTemplates/Parts/Parts.Common.Body.cshtml by placing the same named file into MyTheme/Views/EditorTemplates.  However, this file contains the code:


which renders the file located at Orchard.Core/Common/Views/Body.Editor.cshtml.   This Body.Editor.cshtml file contains the code:

@Html.TextArea("Text", (string)Model.Text, 25, 80, new { @class = editorFlavor.HtmlClassify() })

and I'd like make the 25 line Body textbox be more like 6 lines, but would like to do that in my theme and not modify the base Orchard core code.    Where can I place a file called Body.Editor.cshtml in MyTheme to do this override?  I've placed the file in MyTheme/Views but it is not recognized.