Я попытался: < /p>
Код: Выделить всё
using (Script.Head())
{
}
SetMeta("ABC", "description");
< /code>
Но ни одна из этих работ:-(< /p>
Наш document.cshtml код: < /p>
@using Orchard.Mvc.Html;
@using Orchard.UI.Resources;
@{
RegisterLink(new LinkEntry { Type = "image/x-icon", Rel = "shortcut icon", Href = Url.Content("~/modules/orchard.themes/Content/orchard.ico") });
string title = Convert.ToString(Model.Title);
string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName);
string classForPage = "static " + Html.ClassForPage();
}
@Html.Title(title, siteName)
@{
Display(Model.Head);
}
(function(d){d.className="dyn"+d.className.substring(6,d.className.length);})(document.documentElement);
@Display(Model.Body)
@Display(Model.Tail)
Подробнее здесь: https://stackoverflow.com/questions/271 ... in-orchard
Мобильная версия