在我们实际的开发过程中,经常会把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. C#学习笔记14

    1.在多个线程的同步数据中,避免使用this.typeof(type).string进行同步锁,使用这3个容易造成死锁. 2.使用Interlocked类:我们一般使用的互斥锁定模式(同步数据)为Lo ...

  2. Android 单元测试Junit

  3. Js 对Dom的操作

    一.DOM的概述 DOM(Document Object Model,文档对象模型)描绘了一个层次化的节点树,允许开发人员添加.移除和修改页面的某一部分.这使得JavaScript操作HTML,不是在 ...

  4. c++ 读写结构体到文件

    可以使用fwrite()将一个结构体写入文件:  fwrite(&some_struct,sizeof somestruct,1,fp);对应的fread函数可以再把它读出来,此处fwrite ...

  5. windows c++ 修改用户的文件夹操作权限

    一般Windows下的系统文件(夹)只让受限帐户读取而不让写入和修改.如果要开启写操作权限就需要手动修改文件(夹)的用户帐户安全权限(这操作当然要在管理员帐户下执行).以下用程序封装了一下该操作: # ...

  6. 使用spring aop遇到的坑

    1.aop 切点配置无误但只对控制器无效. 检测你的aop开启配置是否放在了spring配置文件中,如果是请把它移到mvc配置文件中. 我们知道当spring项目使用了spring mvc时,项目是存 ...

  7. ns2.35-classifier.cc

    line143:recv() /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyri ...

  8. Vc code

    通达信L2行情接口, 包括普通行情接口所有功能, 并新增了十档行情, 逐笔成交,买卖队列和深圳逐笔委托(上海证券交易所不对外提供逐笔委托数据)这四个新功能. // TdxHqDemoCpp.cpp : ...

  9. Lua的协同程序初探

    Content: 前两天把Lua的协同程序概念看了一下,不是很懂,只能说<Programming In Lua>中把它解释成线程让人很好的理解起来,但是真正去看的时候,收获并不是很大.第一 ...

  10. vsphere的P2V工具做的物理机迁移到虚拟机报错out of memory

     vsphere的P2V工具做的物理机迁移到虚拟机  迁移成功,但是启动报错  进入rescue模式后发现是sysctl.conf文件的参数设大了因为虚拟机的内存没有物理机内存大 kernel.shm ...