在我们实际的开发过程中,经常会把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. child_process

    child_process const { spawn } = require('child_process'); const ls = spawn('ls', ['-lh', '/usr']); l ...

  2. html+css模仿的锤子官方首页

    <div id="wrapper"> <header> <div class="container"> <h1> ...

  3. 【转】Silverlight无法添加服务引用

    引用地址:http://blog.sina.com.cn/s/blog_6e9c36f501017yzv.html 错误如下: 错误 7 自定义工具错误: 无法生成服务引用“ServiceRefere ...

  4. Goclipse的Eclipse插件包安装升级地址

    http://goclipse.github.io/releases/ Eclipse Software Site for Goclipse This URL is an Eclipse softwa ...

  5. 任务十四:零基础JavaScript编码(二)

    任务目的 在上一任务基础上继续JavaScript的体验 学习JavaScript中的if判断语法,for循环语法 学习JavaScript中的数组对象 学习如何读取.处理数据,并动态创建.修改DOM ...

  6. leetcode-valid number ZZ

    http://blog.csdn.net/kenden23/article/details/18696083 本题是十分麻烦的题目,情况是非常多,网上也很多方法,其中最有效,优雅的方法是有限状态自动机 ...

  7. 【Leetcode】【Medium】Construct Binary Tree from Inorder and Postorder Traversal

    Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that ...

  8. UIButton中的**EdgeInsets是做什么用的?

    UIButton中的**EdgeInsets是做什么用的? UIEdgeInsetsMake Creates an edge inset for a button or view.An inset i ...

  9. python全栈学习笔记(二)网络基础之子网划分

    阅读目录 一.ip地址基本知识 1.1 ip地址的结构和分类 1.2 特殊ip地址 1.3 子网掩码 1.4 ip地址申请 二.子网划分 2.1 子网划分概念 2.2 c类子网划分初探 2.3 子网划 ...

  10. RunDll32.exe 详解及[Windows批处理]清除IE缓存

    Rundll32命令详解 文件作用:执行32位DLL文件中的内部函数 位置:X:(当前系统分区)\windows\system32 命令语法: Rundll32.exe DLLname,Functio ...