Add the Name of the Site (Site Title) to an aspx page template

Darien Liu asked on January 16, 2015 01:37

I'd like for the name of the site shown in the tab to be displayed on a page template as part of the page. How can I achieve this? Using a CMS control?

Correct Answer

Brenden Kehren answered on January 16, 2015 02:52

Use this.PageTitle = SiteContext.CurrentSite.DisplayName;

1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.