如何在 CAML (Sharepoint 2007) 中获得与 SPNavigation.QuickLaunch 相同的结果?
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,导航信息不与库中的页面一起存储。 导航可以存储比刚刚发布的页面更多的内容,因此导航必须存储在它自己的结构中。
这意味着没有任何内容查询。
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.