This project is read-only.

Site Name Not Showing

Apr 3, 2012 at 6:51 PM

I am brand-new to Orchard but finding it fairly easy to start. 

So in the Mango Theme I thought I would see the Site Name in the Header section just like in all the examples. My site Name is not showing. 

What setting or code must I change?

Apr 4, 2012 at 1:40 PM

Mango Theme don't write the Site Name in the layout view, but you can write it as "TheThemeMachine"

You can do it this way:
Create in the Views Directory a file with name : "Brading.cshtml" that contains following code:

    var homeUrl = Href("~/");
<h1 id="branding"><a href="@homeUrl">@WorkContext.CurrentSite.SiteName</a></h1>

and insert in "layout.cshtml"

  WorkContext.Layout.Header.Add(New.Branding(), "5"); // Site name and link to the home page
Hope this is useful :)