惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - Lordan

有sharepoint团队的公司 spgridview的过滤功能回调时发生错误~ moss web service的权限问题 LINQ to SharePoint 试用感受, 欢迎讨论~ 获取共享服务中用户配置的其它额外信息 发布一款天气预报webpart MOSS开发Solution Community Kit for SharePoint 利用资源文件实现多语言的系统 调试有JS的InfoPath 2003 发布一个域安全级别的无代码InfoPath表单作为文档库模版 (InfoPath 一) InfoPath表单容器XmlFormView 列出W3WP进程端口号的详细内容(小技巧) 在blog中添加attachments功能 (修改系统Control) 在blog中添加attachments功能 (利用SharePoint:AttachmentUpload ) (未解决) 显示表单页面的编辑模式 - Lordan - 博客园 Flash + SharePoint WebService播放视频 (二) Flash + SharePoint WebService播放视频 (一) 文档库中文件夹的权限管理
利用SharePoint:DelegateControl部署自定义UserControl
Lordan · 2008-05-16 · via 博客园 - Lordan

需求:

    有个wss的项目, 里面新建乐许多的site, 然后配置了Quick Launch, 最后发现点击了那些链接后无法显示出不同的颜色, 或者需要highlight那些链接, 其实如果在port site里面只要修改css就可以了, 麻烦.

分析:

   经讨论, 重新写一个UserControl放在左边, 链接就由代码控制了.

步骤:
1.  新建一个UserControl , 只要用来显示SPNavigation; 我的文件名是:

LeftNavigation.ascx

2.  一般默认的许多UserControl都是放在目录:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES; 我在该目录下面新建了一个文件夹: NewBizDevLeftNavigation, 然后把那个UserControl放在该目录下面.

3. 利用Feature功能发布UserControl :
Feature.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="5fe11280-005c-11dd-95ff-0800200c9a66"
         Title
="DelegateControlLeftNavigation"
         Scope
="Farm"
         Description
="DelegateControl LeftNavigation"
         Version
="1.0.0.0"
         xmlns
="http://schemas.microsoft.com/sharepoint/">
  
<ElementManifests>
    
<ElementManifest Location="Control.xml" />
  
</ElementManifests>
</Feature>

Control.xml:

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  
<Control Id="NewBizDevLeftNavigation"
           ControlSrc
="~/_ControlTemplates/NewBizDevLeftNavigation/LeftNavigation.ascx"
           Sequence
="100">    
  
</Control>  
</Elements>

4. 利用stsadm命令安装Feature.

5. 利用SPD, 把该UserControl添加到master page中:

                <div id="customLeftNavigation">
                    
<SharePoint:DelegateControl ControlId="NewBizDevLeftNavigation" EnableViewState="true" runat="server" Visible="true"></SharePoint:DelegateControl>
                
</div>

6. 基本上大功告成了, 然后有多少个site就复制,粘贴多少次了, 理解wss的痛苦了.

7. 效果:

8. 相关文件下载