共享点页面标题 [英] Sharepoint Pagetitle
问题描述
标准 sharePoint 只是在浏览器的页面标题中放置页面 - 某个站点",但我想更改它,但不知道如何更改.
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.
我已经成功地创建了一个 webpart 来做到这一点,但我认为创建一个 webpart 来控制像 SharePoint 这样巨大的东西的一小部分是一种严重的矫枉过正.
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.
那么如何在最佳实践中控制页面标题?Webpart 真的有必要吗?这个目标可以通过其他方式实现吗?
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?
要指定更多内容:我不希望它在整个网站上都具有相同的标题.我想让它说:AwesomeSite - 主页"或AwesomeSite - 视频上传"等.你明白了.
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.
推荐答案
第一个问题,AwesomeSite, Home, Video Upload
这些关键词从何而来?来源是什么?
First question , where would these keywords like AwesomeSite, Home, Video Upload
come from ? What would be the source?
最好的方法是创建一个 Delegate
控件并在您的母版页中引用它.这个委托控件可以是一个简单的 javascript 来设置标题,也可以是一个 Web 服务器控件,它将查询当前页面上的共享点元数据来设置标题.
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.
这篇关于共享点页面标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!