This project is read-only.

Orchard 1.8 Page Title Not Displaying

Topics: Core, General
Aug 29, 2014 at 1:39 PM
It is my understanding that the default Core\Shapes\Views\Document.cshtml file has code to retrieve the page ("string title = Convert.ToString(Model.Title);") and site title below. However the value is blank even though titles have been entered into the CMS for each page. The "site title" gets displayed though.

Is this a bug? How can I retrieve the page's title to be included in the tag?

Thanks in advance!

string title = Convert.ToString(Model.Title);
string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName);

<title>@Html.Title(title, siteName)</title>
Nov 20, 2014 at 9:15 PM
Check your placement file to see Parts_Title is not hidden.
Nov 21, 2014 at 6:08 AM
The title in document.cshtml is not the page title or the titlepart at all. It is the title, that gets displayed in the browser tab.
You page title should be displayed as part of the page content type. You can enable the "Shape Tracing" Module which gives you a great overview of the different shapes rendert into your site and it displays the placment into too.