通过 SharePoint API 自定义当前导航
我需要使用 SharePoint API 删除左侧当前导航栏中的许多默认节点(即人员和组、站点)。谁能给我任何关于如何实现这一目标的指导?
谢谢,魔法安迪
I have a requirement to remove a number of the default nodes (i.e. People and Groups, Sites) in the left hand current navigation bar using the SharePoint API. Can anyone give me any guidance on how to achieve this?
Thanks, MagicAndi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的代码将如下所示:
但请注意,不建议按标题查找项目 - 如果 web'b 区域设置不是英语,则会有所不同。因此,通过 ID 查找节点是一个更好的主意。请在此处查看 ID - http://msdn.microsoft.com /en-us/library/dd587301(office.11).aspx
Your code will look something like this:
be aware, though, that finding the item by title is not very recommended - it will differ if the web'b locale is not English. So it would be a better idea to find the node by its ID. See IDs here - http://msdn.microsoft.com/en-us/library/dd587301(office.11).aspx
基于天真的回答:
这篇文章也很有用:
Based on naivists's answer:
This article was also useful: