Cross site collection support

Jul 14, 2008 at 6:47 AM
Just came across this CodePlex project in my search for a "standard" "recently read documents" functionality for MOSS. I was just wondering if it supports multiple site collections or if it is bound to only one site collection?

Jul 23, 2008 at 10:50 AM
The Code is nothing but SPSiteDataQuery's result wrapped in a decorative grid. I don't think that it supports Cross-SiteCollection querying. And hence the webpart can't. Though there are ways to do this like say:
1. Initializing a SPWebApplication
2. Looping through each SiteCollections through SPWebApplication.Sites property
3. Then using SPSiteDataQuery to get results from individual siteCollection and storing it in a temp table
4. merging the temp table in the main Table that would bee used to bind the grid.

but cross-siteCollection querying would be really impractical as you cannot ensure that all the columns desired, List definitions and stuff are same across multiple SiteCollection.