Skip Ribbon Commands
Skip to main content
Cas | zevenseas | SharePoint Blog > Posts > Cross Site Content Aggregation in Office 365
April 18
Cross Site Content Aggregation in Office 365

As we all know in Office 365 developers are bound to the Sandbox which is limited to his own Site Collection. The information living in other Site Collection is hard to get from code. Even with ECMA script the possibilities are very limited too. With an on premise SharePoint 2010 farm the first thing that comes to mind when talking about cross site aggregation is Search. Luckily the possibilities to use Search over Site Collections is present in Office 365.

Note: You’ll need an Office 365 Enterprise License to be able to use Search the way I described.

Sandboxed definitions

Because sandbox development in Office 365 is very limited, the best way to use the sandbox is to deploy custom templates or definition in your Site Collection. For this solution I’ve created a List Definition for a specific type of information: A news article. Why would I create a definition for this and not just add some columns to a generic list with the UI? Well that becomes clear in a sec.

Just for this example I did a simple definition by using the default SPI for a List Definition in Visual Studio.

image

ArticleList is the Definition and Articles is a default Instance. Visual Studio starts with ID 10000 for Definitions or Templates. The ID of the Definition is important in this solution. This Solution needs to be deployed to all Site Collections from which we will aggregate articles.

imageimage
Site Collection 1                                       Site Collection 2

 

Search

To aggregate all the articles we use the Office 365 Search with the All Sites scope. By Default the Search with the All Sites scope will take you to a search center with a results page which is located on the “root” Site Collection of the Office 365 server your environment is on. When using scope This Site you will land on the default /_layouts/OSSSearchResults.aspx page.

However we are free to use the OOB Search Web Parts on any page in Office 365. The one we need to use is the Core Results Web Part. There are a few settings we need to change:

image

Besides the use of the All Sites scope it’s important to set a fixed query for all articles. By Default a SharePoint Search Result contains an element <contentclass/>. This is the property we will use to aggregate all results with this query: contentclass:STS_ListItem_10000. The 10000 is the ID of the List Definition for our ArticleList.

Results

As we can see in the screenshot our articles are stored on different Site Collections (/sites/Aggregatie & /sites/RC). If you’re into XSLT you can change the Web Parts XSLT to reformat the results the way you want.

artikelen

Reusability

By saving all the settings for the Web Part and doing an export / import, the Web Part becomes a very reusable component which can be uploaded to all Site Collections it’s needed. U can also change the view of the results by modifying the XSLT for the results.

Doing aggregation with (mostly) default SharePoint components in Office 365 is very powerful. No Sandbox Code or Client Object Model Code is needed. It’s more flexible and easy to use. Aggregation by Content Type is also a good way to get the information you need. However Content Type is not a property which is passed into the Search Results. It is possible to create a managed property for Content Type and pass it into the Core Results so that can be used.

Comments

Patek Philippe  watches

 the fairly sunset and crystal blue waters http://www.writewatches.com/rolex-rl168-good.html . Now, as for The Crane–I wanted to save the very best for last.   .  I can honestly say that it was 1 of probably the most laid back and relaxing resorts I ve been to within the Caribbean. The Crane is touted as the oldest hotel within the Caribbean and they pride themselves on that by keeping a few of the old exteriors in tact–so romantic and historical. The food was incredible, service was impeccable, the beach (labeled as 1 of the leading ten beaches within the world) was merely spectacular. http://www.writewatches.com/omega-p1099-good.html .  http://www.writewatches.com/breitling-bl46-good.html  The very best component about this resort was that it felt like you had been on a resort sans the crowdedness and noise. I, personally http://www.writewatches.com/breitling-p1425-good.html , strategy on going back and suggest this location for all of you searching for some main R.R. Tags.barbados, beach, caribbean http://www.writewatches.com/breitling- bl142-good.html  http://www.writewatches.com/ . , golf, honeymoon, hotel, resort,   .  royal westmoreland, siren communications, the
 on 1/18/2013 8:56 PM

authentic watches

said CMC chairman Thelma Navarrette. http://www.writewatches.com/breitling-bl95-good.html  The Clemente loved ones owns 30 percent of CMC whilst about 50 percent is held by physicians who personal about 300 shares every representing 1 percent of total   . . The remaining 20 percent is owned by people who inherited their shares from the original partners of Dra http://www.writewatches.com/montblanc.html . Clemente. http://www.writewatches.com/breitling-bl52-good.html .  CMC is among the premier medical institutions in Quezon City with over 3 decades of expertise in delivering high quality well being care   . . MPIC is ratcheting up its hospital operations to total a nationwide network of 15 more than the following 5 years and reach a total bed capacity of three,000. This really is in line with its objective to turn out to be a P10 billion business by 2016. The group is presently the biggest private hospital operator with 1 http://www.writewatches.com/breitling-p1747-good.html ,800 beds all through the nation http://www.writewatches.com/ . . The MPIC group now operates or owns six hospitals.the recentlyacquired upscale 219bed Asian Hospital in  http://www.writewatches.com/omega-om122-good.html 
 on 1/18/2013 8:57 PM

jacky

the real watch from the best Frank Muller Casablanca replica. All the best Frank Muller replica are manufactured by by <a href="http://www.dreamrwatches.com/">www.dreamrwatches.com</a> by experts who spare no pains to assure that the best Frank Muller replica you purchase looks like the
thing. This is the main reason, apart from its low prices that makes the best Frank Muller replica the the <a href="http://www.dreamrwatches.com/">www.dreamrwatches.com</a> the darling of every watch purchaser. It is high time that you too purchased one of the best Frank
replica today.Swiss watches are among the hottest fashion accessories. However, they are not just another fashion accessory to keep keep <a href="http://www.dreamrwatches.com/">Replica Rolex</a> keep in your wardrobe collection. It became a jewelry item, which everybody loves to flaunt. People wearing Swiss watches
considered as fashionable and stylist. However, this style and fashion sense comes with a heavy price tag.&nbsp;No doubt, Swiss Swiss <a href="http://www.dreamrwatches.com/">www.dreamrwatches.com</a> Swiss watches are an excellent example of superior quality, precision engineering, and skilled artisanship. That is the reason behind
 on 3/10/2013 6:04 AM

cheap Digital Cameras

This is my really feel of this site. No matter it do a help for you or not. I hope you can enjoy your shopping online every day. The goods in this ahappydeal.com are worth buying.
http://www.ahappydeal.com/wholesale-analog-tv.html
 on 4/15/2013 8:19 PM

Add Comment

Title


Body *


Captcha *

 

Attachments

 

 Statistics

 
Views: 1986
Comments: 4
Tags:
Published:793 Days Ago