如何在 CAML (Sharepoint 2007) 中获得与 SPNavigation.QuickLaunch 相同的结果?

发布于 2024-07-15 07:34:38 字数 328 浏览 2 评论 0原文

我在 Sharepoint 中有一个网站。

要获取按探索排序的站点列表,即按 Sharepoint 管理中的用户排序,我将编写以下代码:

 SPWeb web = CurrentSite.OpenWeb(currentSite);
 SPNavigation nav = web.Navigation;
 SPNavigationNodeCollection nodeColl = nav.QuickLaunch;

没问题,但我需要使用 CAML 来完成。 唯一的问题是我不知道如何获取用户订购的项目,我得到未排序或按列排序的项目,我认为没有用户订单的列。

I have a website in Sharepoint.

To get a list of sites ordered by the exploration, that is to say, ordered by the user in the Sharepoint administration, I would write the following code:

 SPWeb web = CurrentSite.OpenWeb(currentSite);
 SPNavigation nav = web.Navigation;
 SPNavigationNodeCollection nodeColl = nav.QuickLaunch;

That is OK, but I need to do it with CAML. The only problem is that I don't know how to get the items ordered as the user did it, I get the items unordered or ordered by a column, I don't think there is a column for the user's order.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

所谓喜欢 2024-07-22 07:34:38

不幸的是,导航信息不与库中的页面一起存储。 导航可以存储比刚刚发布的页面更多的内容,因此导航必须存储在它自己的结构中。

这意味着没有任何内容查询。

Unfortunately, the navigation information is not stored with the pages in the library. The navigation can store more that just published pages, so the navigation had to be stored in it's own structure.

That means there is no content query for this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文