前面,我在这里发贴求助各位怎样修改右上角的“新闻源”及“网站”名称的问题,各位给我的答复是找到ID然后在母板面写JS覆盖掉,这种确实能解决,但对于多个网站集的或者后期新建WEB应用的,这种办法是会失效的,正如下文所说
1. Remove the delegate control (or hide it) and simply hard code the links in the master page. This is only a viable option if you using a single language site and you are only making the changes for a single site collection. If you were using a multilingual site, you would lose the automatically translated links that SharePoint provides. And you would need to make this change in the master pages of every site collection.
在国内网站,基本上搜sharepoint是没有这个资料,唯有寻找外文网站,终于让我找到解决方法
2. Override the delegate control with a custom control. This presents a unique challenge in that all of the default links are hard-coded in non-public methods of the SharePoint assemblies.
我不是程序员,只是公司特别要求修改,只有硬着去钻研....中文资料基本上是写JS解决。。
效果如图所示
具体过程我就不说了,对于我来说有点复杂,
1,只添加自定义链接,参考以下链接
http://zimmergren.net/technical/sp-2013-some-new-delegatecontrol-additions-to-the-sharepoint-2013-master-pages
2,特殊要求(添加自定义链接及直接修改新闻源等名称),办法是找到新闻源控件的属性,参考以链接,具体是在A&Q下面有人提出,正符合了我的要求,完美。
http://www.sharepointjohn.com/technology/sharepoint/sharepoint-2013-adding-links-suite-bar-newsfeed-skydrive-sites-overriding-suitelinksdelegate-delegate-control/