Closed musukvl closed 9 years ago
Code sample:
@{ string title = "Title"; string siteName = "Site"; } <meta property="og:title" content="@Html.Title(T(title).ToString(), T(siteName).ToString())" /> <title>@Html.Title(T(title).ToString(), T(siteName).ToString())</title>
makes:
<meta property="og:title" content="Site - Title" /> <title>Site - Title - Site - Title</title>
Because @Html.Title reuses same instance of IPageTitleBuilder. So PageTitleBuilder.AddTitleParts collects title parts for all @Html.Title calls.
For Orchard CMS 1.8.2
This is the bug database for the documentation.
Please ask such questions here : https://github.com/OrchardCMS/Orchard/issues
Thanks, I moved it to /OrchardCMS/Orchard/issues so you can delete this issue.
Code sample:
makes:
Because @Html.Title reuses same instance of IPageTitleBuilder. So PageTitleBuilder.AddTitleParts collects title parts for all @Html.Title calls.
For Orchard CMS 1.8.2