Sharepoint Pagetitle

2019-08-18 08:01发布

Standard sharePoint just put "Page - some site" in the page title in the browsers, but I want to change that, but don't know how.

I have succesfully created a webpart to do so, but I believe it's a major overkill creating a webpart to control such a small part of something as huge as SharePoint.

So how can I control what the page title in best practice? Is a webpart reallly neccessary or can this goal be achieved in some other way?

To specify some more: I don't want it to just have the same title all over the site. I want it to say something like: "AwesomeSite - Home" or "AwesomeSite - Video upload" etc. You get the point.

1条回答
老娘就宠你
2楼-- · 2019-08-18 08:16

First question , where would these keywords like AwesomeSite, Home, Video Upload come from ? What would be the source?

The best would be to create a Delegate Control and refer it in your master page. This delegate control can be either a simple javascript to set the Title or a web server control which will query the sharepoint metadata on current page to set the Title.

查看更多
登录 后发表回答