Andrew Connell [MVP MOSS]
1508 Posts |  42 Articles |  4608 Comments
.NET  |  MCMS  |  SharePoint  |  Office System
SharePoint Quick Links
Article Categories
Archives
Post Categories


Add to Technorati Favorites

At TechEd 2009 in LA a few weeks back, Todd Baginski and I co-presented a session OFC405 – Extending the Content Query Web Part to Aggregate Data Across Site Collections and External Sources where we introduced a solution that addresses a common challenge in today’s SharePoint sites: aggregating content ACROSS site collections. It took some time, but we finally got the code cleaned up and posted for you to download and kick the tires too.

Now some will see this as a replacement to the Content Query Web Part (CQWP)but it isn’t. That is still the ideal way to aggregate content within an existing site collection as it contains a robust caching and is tweaked for peak performance of highly trafficked sites.

What we set out to do was to work on a solution that would do the following:

  • Aggregate content across site collections
  • Aggregate content from external sources

So after considerable planning; here’s what we came up with… a detailed UML diagram complete with loads of test cases:

TBAC-CMWP
click image for higher resolution (that you can actually read)

OK… joking aside, here’s what we did as our architecture is actually quite simple:

  • Create a provider-like implementation where…
  • The Content Monster Web Part (CMWP) acts as a provider selector (sort of like how the SmartPart works selecting a user control) for installed providers
  • The CMWP calls the selected provider, passing in properties. The provider does it’s work and hands back results in XML format.
  • the CMWP takes the XML formatted results and runs them through the specified XSLT file to generate the HTML markup used in rendering.

It is really that simple! The current code is a working proof of concept… Todd and I have a lot of work to do to take it where we want it to go. But so far you’ll find the working Web Part, a sample provider and two real world providers that rollup content from Azure and using the SharePoint search API (for cross-site collection aggregation). You’ll see more coming as we get through the summer and into the fall.

You can download the current working code from the MSDN Code Gallery project we setup. Note there are a few releases so make sure you get what you’re looking for!

» MSDN Code Gallery: TBAC Content Monster Web Part for SharePoint
» TechEd OFC405 Presentation (slide deck)

Technorati Tags: ,,,,
posted on Tuesday, June 30, 2009 6:14 PM

Feedback

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 6/30/2009 6:45 PM Bil Simser
Gravatar Brilliant! This is very cool, can't wait to try it out. I also think I'm giving this session at TechDays 2009 in November so this will be handy! Great work guys!

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 7/7/2009 3:08 PM Joyce
Gravatar I have downloaded this webpart and I'm anxious to give it a try. I really need cross site collection aggregation and was very excited to see this post.

I downloaded the webpart project and did successful build. However, I tried to add & deploy the wsp, but have not been able to get the webpart to work. Can you provide installation instructions?

It appears to expect a RegisteredProvidersList and some stylesheets that aren't found.

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 7/8/2009 8:51 AM AC [MVP MOSS]
Gravatar Joyce-
When you deploy the WSP and activate the Feature for the CMWP, it creates the list in the background for you. If it didn't, you'll have to figure out why it failed. it sounds like you didn't activate the Feature to provision the Web Part, style sheets and the registration list.

Code is VERY alpha... not terribly polished yet.

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 7/28/2009 6:42 AM Mark Kruger
Gravatar Can't wait to give a try...

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 8/19/2009 6:07 PM Carlos
Gravatar i have downloaded and installed the webpart but i have the same problem i can't see the functionality because there are anything that it couldn't read.

are there some instructions to installation??

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 8/19/2009 9:18 PM AC [MVP MOSS]
Gravatar Carlos-
It is a very early drop of the concept and all details are on the site.

# re: Introducing the Content Monster Web Part by Todd Baginski & Andrew Connell 9/1/2009 2:01 AM Seema
Gravatar when trying to add a web part there is some exception thrown .on debug i found out that some xsl is required..but the downloaded zip does not have any .xsl file..its missing..

Post Feedback

Title:
Name:
Email:
(email will not be displayed)
Url:
Comments: 
Please add 1 and 6 and type the answer here:    
All Comments Are Filtered & Moderated
Unfortunately comment spammers are just too effecient and are constantly dirtying up blogs with irrelevant and unwanted comments trying to improve their standing on search engines. All comments on this blog are moderated. I do not censor comments, but I don't approve comments with vulger language or those soliciting products. Most of the time comments are approved within a few hours of being submitted with the only exception when I'm traveling.

Why are you asking for my email address?
The only reason I'm asking for your email address, which isn't required to submit a comment, is to provide a gravatar if you've created an account for yourself and associated your email address with a small image. If you have a gravatar created for the email address you submit, it will appear next to your comment. Otherwise nothing will appear.

What is a gravatar?
A gravatar is a "globally recognized avatar." You can get more information about gravatars, as well as create your own for free, at www.gravatar.com. You can also view my gravatar here.


Copyright © 2003 - 2009 Andrew Connell
Creative Commons License 
This work is licensed under a Creative Commons License
Site design by Heather Solomon.

 
 
MOSS WCM Training
Looking for MOSS 2007 WCM developer training? Look no further! I teach my 5-day hands-on and online WCM classes for developers I offer through my company: Critical Path Training.

Get more information on the WCM courses!