在我们实际的开发过程中,经常会把SharePoint中的一些已有的feature去掉,如欢迎信息下面的“我的设置”,“对本页面进行个性化设置”。详细见下图:

Figure 1  常见的欢迎信息的界面

在SharePoint中的存在的一些Feature通常都是以用户控件的形式存放在SharePoint服务器的物理路径中,我们看到的欢迎信息在SharePoint中对应的为“Welcome.ascx”,这些用户控件一般都存放在“C:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/CONTROLTEMPLATES”下面,下面是welcome.ascx的详细信息:

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities"Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %>

<%@ Control Language="C#"Inherits="Microsoft.SharePoint.WebControls.Welcome,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"  AutoEventWireup="false" compilationMode="Always" %>

<SharePoint:PersonalActions AccessKey="<%$Resources:wss,personalactions_menu_ak%>" ToolTip="<%$Resources:wss,open_menu%>" runat="server" id="ExplicitLogout" Visible="false">

<CustomTemplate>

<SharePoint:FeatureMenuTemplate runat="server"

FeatureScope="Site"

Location="Microsoft.SharePoint.StandardMenu"

GroupId="PersonalActions"

id="ID_PersonalActionMenu"

UseShortId="true"

>

//我的设置

<SharePoint:MenuItemTemplate runat="server" id="ID_PersonalInformation"

Text="<%$Resources:wss,personalactions_personalinformation%>"

Description="<%$Resources:wss,personalactions_personalinformationdescription%>"

MenuGroupId="100"

Sequence="100"

ImageUrl="/_layouts/images/menuprofile.gif"

UseShortId="true"

/>

//以其他用户登录

<SharePoint:MenuItemTemplate runat="server" id="ID_LoginAsDifferentUser"

Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"

Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"

MenuGroupId="200"

Sequence="100"

UseShortId="true"

/>

//用于请求访问,一般在没有权限的时候,会用到

<SharePoint:MenuItemTemplate runat="server" id="ID_RequestAccess"

Text="<%$Resources:wss,personalactions_requestaccess%>"

Description="<%$Resources:wss,personalactions_requestaccessdescription%>"

MenuGroupId="200"

UseShortId="true"

Sequence="200"

/>

//注销

<SharePoint:MenuItemTemplate runat="server" id="ID_Logout"

Text="<%$Resources:wss,personalactions_logout%>"

Description="<%$Resources:wss,personalactions_logoutdescription%>"

MenuGroupId="200"

Sequence="300"

UseShortId="true"

/>

//对本页进行个性化设置

<SharePoint:MenuItemTemplate runat="server" id="ID_PersonalizePage"

Text="<%$Resources:wss,personalactions_personalizepage%>"

Description="<%$Resources:wss,personalactions_personalizepagedescription%>"

ImageUrl="/_layouts/images/menupersonalize.gif"

ClientOnClickScript="javascript:MSOLayout_ChangeLayoutMode(true);"

PermissionsString="AddDelPrivateWebParts,UpdatePersonalWebParts"

PermissionMode="Any"

MenuGroupId="300"

Sequence="100"

UseShortId="true"

/>

//当设置个人视图后,可以对不同视图的切换

<SharePoint:MenuItemTemplate runat="server" id="ID_SwitchView"

MenuGroupId="300"

Sequence="200"

UseShortId="true"

/>

//个性化设置后,用于恢复系统默认视图

<SharePoint:MenuItemTemplate runat="server" id="MSOMenu_RestoreDefaults"

Text="<%$Resources:wss,personalactions_restorepagedefaults%>"

Description="<%$Resources:wss,personalactions_restorepagedefaultsdescription%>"

ClientOnClickNavigateUrl="javascript:MSOWebPartPage_RestorePageDefault()"

MenuGroupId="300"

Sequence="300"

UseShortId="true"

/>

</SharePoint:FeatureMenuTemplate>

</CustomTemplate>

</SharePoint:PersonalActions>

<SharePoint:ApplicationPageLink runat="server" id="ExplicitLogin"

ApplicationPageFileName="Authenticate.aspx" AppendCurrentPageUrl=true

Text="<%$Resources:wss,login_pagetitle%>" style="display:none" Visible="false" />

PS:每个feature 对应的功能已经标识出来,可以根据实际的需要来删除或者是注释

Figure 2 修改过后的欢迎信息

如果要对“网站操作、List中操作等”中的Item进行操作,也是一样。找到ascx,注释掉,删除掉,都ok,如果希望管理员能看到,也可以设置每个featrue的权限。

[SharePoint]如何去掉欢迎导航的信息?的更多相关文章

  1. 为SharePoint网站创建自定义导航菜单

    转:http://kaneboy.blog.51cto.com/1308893/397779 相信不少人都希望把SharePoint网站内置的那个顶部导航菜单,换成自己希望的样式.由于SharePoi ...

  2. SharePoint 2010顶部链接导航栏的详细操作

    转:http://www.360sps.com/Item/UseTopLink.aspx 在SharePoint 2010环境的页面中,导航链接总体上可以分为两类,一类是显示在左侧的快速启动栏,另一类 ...

  3. Sharepoint网站创建自定义导航全记录

    转:http://tech.it168.com/a2009/1207/820/000000820524_all.shtml [IT168 技术文档]在一个Sharepoint网站中可以创建子网站,页面 ...

  4. H-ui.admin v3.1学习之路(一):导航栏信息无法在内容区显示

    注:我使用的是别人的模板文件在我的云盘“素材模板—H-ui.admin’中. 直接上代码: <li class="dropDown dropDown_hover"> & ...

  5. 修改SharePoint 2013中item Created by 信息

    因为公司的系统有点小bug.额,要做点坏事,把系统没记上的东西偷偷补上去,但是item的created by变成了我(这怎么行,不能让别人知道我做了坏事,一定是隔壁小李干的! 懒得开visual st ...

  6. 【win8技巧】去掉Win8导航菜单下面的这台电脑其他的文件夹

    win8 删除 上传 下载 这台电脑 左侧导航 另存为中的 视频.图片.文档.下载的方法!落雨 win8 Windows 8.1  默认将视频.图片.文档.下载.音乐.桌面等常用文件夹也显示在其中了, ...

  7. sharepoint 2013 设置 显示详细错误信息

    1. 在当前网站端口目录下的Web.config修改 例如80端口的站点路径为:C:\inetpub\wwwroot\wss\VirtualDirectories\80 (1)将<customE ...

  8. 小程序--改变子级别页面导航栏信息 / navigationBarTitleText

    微信小程序在公共文件app.json中设置了导航栏相关样式如下: 其中  navigationBarTitleText 为设置导航栏名称,若是想子级页面和父页面的header页面不同,则在子级文件中新 ...

  9. SharePoint使用jsom查询当前用户信息

    前置环境:sharepoint 'use strict'; var context = SP.ClientContext.get_current(); var user = context.get_w ...

随机推荐

  1. linux 添加开机自启动脚本

    原文 Linux设置服务开机自动启动的方式有好多种,这里介绍一下通过chkconfig命令添加脚本为开机自动启动的方法. 1. 编写脚本autostart.sh(这里以开机启动redis服务为例),脚 ...

  2. phpmyadmin登录报错crypt_random_string requires at least one symmetric cipher be loaded 解决方法

    通过phpmyadmin登陆时提示以下错误: phpmyadmin crypt_random_string requires at least one symmetric cipher be load ...

  3. spring下应用@Resource, @Autowired 和 @Inject注解进行依赖注入的差异

    为了探寻 '@Resource', '@Autowired', 和'@Inject'如何解决依赖注入中的问题,我创建了一个"Party"接口,和它的两个实现类"Perso ...

  4. Hibernate 注解(Annotations 一)

    1. @Entity 将一个类声明为一个实体bean(即一个持久化POJO类). 2. @Table 声明了该实体bean映射指定的表(table),目录(catalog)和schema名字 3. @ ...

  5. Qt 之模型/视图(自定义按钮)

    https://blog.csdn.net/liang19890820/article/details/50974059 简述 衍伸前面的章节,我们对QTableView实现了数据显示.自定义排序.显 ...

  6. eclipse 出现 jar包找不到 问题记录

    同事在下载maven私服项目的时候,自动更新失败.maven 一直提示 parent 更新失败但是其他的项目都是正常的,这就奇怪了. 最后 仔细查询后,发现是  同事在下载项目时候,项目是分clien ...

  7. 用两个栈实现队列(C++ 和 Python 实现)

    (说明:本博客中的题目.题目详细说明及参考代码均摘自 “何海涛<剑指Offer:名企面试官精讲典型编程题>2012年”) 题目 用两个栈实现一个队列.队列的声明如下,请实现它的两个函数 a ...

  8. swoole 创建tcp服务器

    server.php <?php /** * 创建tcp服务器 * Date: 2019/1/15 */ $serv = new swoole_server('127.0.0.1', 9501) ...

  9. Maximum Subarray解题报告zz

    http://fisherlei.blogspot.com/2012/12/leetcode-maximum-subarray.html Find the contiguous subarray wi ...

  10. ubuntu16.04下无法连接网络的bug

    首先介绍下Bug的情况,这个bug纠缠我整整一天,在命令行下ifconfig能够看到ip地址,不过我的不是eth0,而是enps03,然后Ping 本机和ping 网关都能够 ping 通,但是sud ...