Get a list items across sites

Feb 8, 2012 at 8:50 PM
Edited Feb 8, 2012 at 8:54 PM

Any other operation like GetListItems but it gets a list items of the same name across different subsites? More like this

SPSiteDataQuery spSiteQuery = new SPSiteDataQuery
{
Query = query,
Lists = string.Format(ListTemplate, ServerTemplateId),
Webs = "<Webs Scope='SiteCollection'>",
ViewFields = NewsViewFields,
RowLimit = (uint)ItemLimit
};


if not, how can I use SPservices to achieve the same goal?

Coordinator
Feb 10, 2012 at 2:42 AM
Here's a blog post that gives one approach:
http://www.bentedder.com/spservices-and-jquery-pull-items-from-multiple-lists-in-sharepoint-2010/

M.