Mr1159pm
Mr1159pm

Reputation: 774

Add individual page titles to html document head in Orchard CMS

For SEO reasons I want to add individual page titles to my web pages instead of general site name as it is done by default.

Here is what I have figured out by myself:

I need to copy to my theme and modify Document.cshtml section:

<title>@Html.Title(title, siteName)</title>

I need to insert there Title content part that is included in every page.

How do I do that?

Upvotes: 2

Views: 2643

Answers (2)

Mr1159pm
Mr1159pm

Reputation: 774

I found a module that does exactly what I need!

Upvotes: 1

Giscard Biamby
Giscard Biamby

Reputation: 4609

From your view, do this:

@{
    Html.TitleForPage("Mr1159pm's Page Title");
}

Upvotes: 4

Related Questions