Inner workings of Community Portal in SharePoint 2013
SharePoint 2013 introduces a new Community site template. To go along with it, there is also a Community Portal template for Site Collections. This portal essentially is a jumping off point into any and all communities that have been provisioned in your environment. The whole thing is powered by search but how exactly does it work? Specifically, how does the portal issue the search query and what exactly is SharePoint indexing for each community site? Let’s dig in.
First off, let’s take a look at this webpart and see what we can learn. A quick peek at the query tells us that the webpart is looking for the value ‘Community’ against a managed property of ‘WebTemplate’. Is the result item an actual SPWeb object? It would seem so. Let’s take a further look by dissecting the display template.
The display templates section of this webpart tells us that an external template is being referenced but it doesn’t tell us which one. So let’s export the webpart and dig deeper. What we learn is that there is a javascript file called Item_CommunityPortal.js in the masterpage gallery which is being used to display these result items. A scan of this display template indicates that metadata such as the number of members or topics is being extracted from the result item itself.
If our hypothesis is correct and the result item is in fact a SPWeb object then does this mean that these metadata values are being stored in the property bag for the web? One final validation reveals that this is in fact the case and voila! We now know how the portal knows what it knows about all the communities in the environment.
A few tangential but interesting items we pick up from the exported webpart are as follows-
- The fully qualified type name for the webpart (It’s not a content by search part)
- The fallback sorting algorithm
2 Responses to Inner workings of Community Portal in SharePoint 2013
Leave a Reply Cancel reply
Pages
Archives
- June 2014
- February 2013
- July 2012
- May 2012
- December 2011
- August 2011
- June 2011
- April 2011
- March 2011
- September 2010
- August 2010
- July 2010
- May 2010
- February 2010
- January 2010
- November 2009
- March 2009
- January 2009
- April 2008
- March 2008
- October 2007
- September 2007
- August 2007
- July 2007
- May 2007
- March 2007
- February 2007
- December 2006
- October 2006
- September 2006
- August 2006
- June 2006
- May 2006
- April 2006
- March 2006
- December 2005
- September 2005
- August 2005
- June 2005
- April 2005
- March 2005
- February 2005
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- March 2004
- September 2003
- August 2003
- April 2003
Categories
- Chromium OS
- Internet Explorer 7
- Kwizcom
- Miscellaneous
- Movies
- MS Office
- Music
- Night on the Town
- Office 2007
- Outlook 2007
- Pictures
- PowerShell
- Products/Shopping
- Recovered Entries (01/19/2005)
- Restaurants/Food
- Sharepoint 2007 ( MOSS / WSS )
- Sharepoint 2010 (SPS / Foundation)
- SharePoint 2013
- Tech
- The Law
- TV
- Uncategorized
- Video Games
- Vista
- Visual Studio 2010
- VMWARE
- VMWARE Server 2.0
- Website
- Windows Live
- Work
- XP
If you took a peek at SharePoint 2013 recently, you may have noticed there is a new Site Collection called the Community Site Portal. This new site works in conjunction with the Community Site template. In short, it’s a site that shows you a list of all Community Sites. My goal is to do the same thing but for other types of Sites, for example a Team Site portal.
Hi I have made a Community portal, but it keeps showing me “There are currently no communities in this view.”
I asked about that in http://stackoverflow.com/questions/23442728/there-are-currently-no-communities-in-this-view-message-in-sharepoint-2013-co but there is no answer, can give me some guide lines about resolving this issue?