分享-SharePoint 2013 右上角自定义链接

arstcmyy 2015-09-16 09:13:58
加精
前面,我在这里发贴求助各位怎样修改右上角的“新闻源”及“网站”名称的问题,各位给我的答复是找到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/
...全文
3057 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
MoMo20151111 2015-10-27
  • 打赏
  • 举报
回复
感谢分享,遇到了同样的问题
MoMo20151111 2015-10-27
  • 打赏
  • 举报
回复
左上角的SharePoint文字在哪里改啊
电动马达腰 2015-10-06
  • 打赏
  • 举报
回复
很实用,顶一个。
程序员鼓励师 2015-09-26
  • 打赏
  • 举报
回复
dolyings 2015-09-23
  • 打赏
  • 举报
回复
xieyanxu7 2015-09-23
  • 打赏
  • 举报
回复
生活很美好 、、、、、、、、、、、、、、、
qq_31516059 2015-09-22
  • 打赏
  • 举报
回复
感谢分享,好好好
baidu_26219021 2015-09-22
  • 打赏
  • 举报
回复
很不错的一篇文章
haba1999 2015-09-22
  • 打赏
  • 举报
回复
感觉写的很好 必须支持啊
nettman 2015-09-22
  • 打赏
  • 举报
回复
感谢分享
Justin-Liu 2015-09-22
  • 打赏
  • 举报
回复
感谢分享
段传涛 2015-09-17
  • 打赏
  • 举报
回复
做的不错啊。 挺好的。
pujiaoyun 2015-09-16
  • 打赏
  • 举报
回复
霖雨 版主 2015-09-16
  • 打赏
  • 举报
回复
支持一下!顶一个!

3,242

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 SharePoint
社区管理员
  • SharePoint社区
  • 霖雨
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧