试图通过Feature的HideCustomAction来实现,貌似搞不定,网上也没找到,推荐一下两种方法:

方法一、

可以通过SPD找到MasterPage中的相关控件,修改Visible属性,这样的话,所有的都看不见了。

方法二、

通过Css、Js来实现,效果还不错,应该Js可以加权限控制的,没有尝试过。

QuickLaunch下方的可以添加CSS:

.s4-specialNavLinkList
{
 display:none !important;
}

SiteAction中的可以用JS实现:

 var actiondoc = document.getElementsByTagName('ie:menuitem'); 
 for (var i = 0; i < actiondoc.length; i++) 
 {   
  item = actiondoc[i];   
  if (item.id.indexOf('ViewAllSiteContents')>0)     
  {
   item.hidden=true;
  } 
 }

相关文章:

  • 2021-05-24
  • 2021-06-26
  • 2021-06-11
  • 2021-11-02
  • 2022-01-07
  • 2021-12-10
  • 2021-11-09
  • 2021-11-28
猜你喜欢
  • 2022-02-10
  • 2022-12-23
  • 2021-05-16
  • 2022-01-30
  • 2021-10-26
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案