通过 Web 服务将 SharePoint 文档列表添加到快速启动 [英] Add SharePoint Document List to Quick Launch through Web Services

查看:25
本文介绍了通过 Web 服务将 SharePoint 文档列表添加到快速启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过 C#.Net 应用程序使用 Webservice Lists.AddList 方法在 SharePoint 中创建文档库.(见下文)

I'm creating Document Libraries in SharePoint with the Webservice Lists.AddList method through a C#.Net application. (See below)

listsService.AddList(listTitle, listDescription, 101);

我希望它们显示在创建它们的站点下的快速启动"菜单中,而不仅仅是所有站点内容"菜单.

I would like them to show up in the Quick Launch menu under the site they're created in rather than just the 'All Site Content' menu.

我看过 Lists.UpdateList() 方法,但运气不佳.

I've had a look at the Lists.UpdateList() Method, but without much luck.

有谁知道如何通过 Web 服务做到这一点?(无法手动完成,因为要更改的列表太多).

Does anyone know how to do this through Web Services? (It cannot be done manually as there are far too many lists to change).

我使用的是最新版本的 SharePoint Server 和 Web 服务.

I'm using the latest version of SharePoint Server and Web Services.

谢谢:)

推荐答案

我相信您是正确的,无法通过 Web 服务设置 OnQuickLaunch.在 listProperties 中为 UpdateList 设置 OnQuickLaunch 是我会尝试的,但听起来这不起作用.

I believe you are correct that setting OnQuickLaunch isn't available through the web service. Setting OnQuickLaunch in listProperties for UpdateList is what I would try, but it sounds like that doesn't work.

如果您的列表尚不存在,我建议使用带有 OnQuickLaunch="true" 的列表模板创建一个功能,并通过 AddListFromFeature 添加列表.您的另一个选择似乎是编写自己的服务以通过对象模型设置属性.

If your lists didn't already exist, I would suggest creating a feature with a list template with OnQuickLaunch="true" and adding the lists via AddListFromFeature. Your other option would seem to be to write your own service to set the property through the object model.

这篇关于通过 Web 服务将 SharePoint 文档列表添加到快速启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆