我定型了正在使用果园一个网站,我注意到他们是具有消息的自定义内容类型,这里是HTML如何覆盖核心共同的看法在乌节
<p>Some text</p>
<p>Some more text</p>
标准的消息这是细但是由于它被插入每个</p>
这里后<br />
的Orchard.Core.Common.Views.Fields.Common.Text.cshtml是他们的视图,其呈现所述消息
@using Orchard.Utility.Extensions;
@{
string name = Model.ContentField.DisplayName;
}
@if (HasText(name) && HasText(Model.Value)) {
<p class="text-field"><span class="name">@name:</span> <span class="value">@(new MvcHtmlString(Html.Encode((HtmlString) Model.Value).ReplaceNewLinesWith("<br />")))</span></p>
}
我怎样才能覆盖这个?我试图将视图复制并粘贴到我的主题/视图文件夹中,但似乎并未覆盖它。我只是想删除".ReplaceNewLinesWith("<br />")"