Home » Sharepoint 2010

News feed: site template?

I'm looking to create a top-level site for a site collection (an intranet) in SharePoint 2010. The top-level site is initially (first version) supposed to contain an intranet news feed as well as some links (to external sites and whatnot). Later on (later version), it is desired to add personalization to this site - i.e. user-centered content and the ability for the user to customize the "Home" page to some extent (the News feed should always appear), etc.

I am a bit confused, or rather unsure, of what site template to use?

 I have experience of developing Web Parts (primarily what I've been working with in the SharePoint 2010 platform), but very little experience of setting up sites using as much out of the box functionality as possible. Based on what I've read there was a suitable site template available in SharePoint 2007, but I'm yet to find one for SharePoint 2010. At the moment I'm considering to set up the News feed using the Content Query Web Part. Thankful for any suggestions, tips or hints.

Johan Nordholm


5 Answers Found


Answer 1


What version of SharePoint 2010 are you using?  SharePoint Foundation 2010, SharePoint Server 2010 Standard, or SharePoint Server 2010 Standard?

The templates that will be available to you will depend on the version you are using.  For the most part, the site  templates that were available to you in 2007, are available in 2010.  The big one that is missing is the Collaborative Portal.  To pick the right template, you need to think of how it is going to be used.  For starters, you want to use the Content Query Web Part (CQWP).  This is only available when Publishing Features are enabled, and will also require you to have SharePoint Server 2010 Standard or Enterprise.  If it were me, I would look at two options:  Team Site and then enable Publishing features or Publishing Portal.


Answer 2

We're using SharePoint Server 2010 Enterprise. Thanks for your feedback. Will give it a try, using Publishing Portal and CQWP. Otherwise I can always resort to developing Web Parts ;)


Jphan Nordholm


Answer 3

Well, you answered my question but I've encountered some "issues".

Really want I want is a blank top-level site  (say Home), with two sub-sites: news  and Events. At the top-level  site only the most recent content of the News site and the Events site should be displayed, and I figure the Content Query Web Part will be sufficient for that particular purpose. However, for the two sub-sites, I'm going for an intranet  news publishing mechanism - would be nice to access news articles via URL, etc. These internal news and events may very well contain a great deal of information (and perhaps an image and whatnot). Hence, I should go for the page publishing structure of a Publishing Site rather than the announcement list structure that comes with a Team Site.

I can't really figure out how this is supposed to work. I created a blank top-level site, and then added a Publishing Site (News) as a sub-site. The site only contains a welcome page, which I'm yet to customize. However, I'm looking for some type of "add news article" functionality, which the very least gives me a new article page for creating the news article. I'm yet to find this. The end user's supposed to go to the News site, click say "Create News Article", add some content and then publish the article.

I figured I would use the Article Page content type and add pages to a library - i.e. the pages (of content type Article Page) will really be the news. The only thing I can find throughout the UI, for something like "add news" functionality is to add an item for the library. But the Pages library (the generated Document Library for the site) results in uploading a document when trying to add an item - which of course makes perfect sense - but is far from what I'm hoping to achieve.

To sum up, the announcement list of the Team Site won't fulfill the requirements for news articles, whereas the Article Page content type of the Publishing Site template  does. However, the Publishing Site doesn't seem to cover the big picture - from the end user's perspective - and the only thing I seem able of achieving without uploading a document is to edit the default welcome page via the ribbon.

I know I must have got something regarding the publishing site terribly wrong, but I'm yet to figure out how this should work. Help... ;) 

* Edit: I found the "New Document" option in the ribbon to add a new Article Page to the document library, but aren't there any smoother way of achieving this functionality (again, from the end user perspective)?

Johan Nordholm


Answer 4

Hello John,

There is a blank site  template you can start with.  Once you create  the site collection, then enable the publishing feature. Are you trying to display the most recent news  and events items in the same web part?  If so, why not separate them into two web parts? The Publishing site will have some nice web content management features, but once the rollup functionality is setup, you won't really need to have them.  Your users will simply be adding Announcement list items and Article pages to a document library.  The real catch is that you need publishing features to be able to use the Content Query Web Part. To create a new article page, your uses with have to click on Site Actions > More Options.  Here they can select a Publishing Page and when the click create, they will be prompted to select a page layout (if you go into Site Actions > Site Settings > Page Layouts and Site Templates (under Look and Feel) you can restrict the template  options that are available;  this will ensure your users only have the option to use an article page or your choosing). For this issue:  "I figured I would use the Article Page content type and add pages to a library - i.e. the pages (of content type Article Page) will really be the news. The only thing I can find throughout the UI, for something like "add news" functionality is to add an item for the library. But the Pages library (the generated Document Library for the site) results in uploading a document when trying to add an item - which of course makes perfect sense - but is far from what I'm hoping to achieve."  If you create a document library and have the Library Tools > Library tab selected and click on Library settings in the ribbon, you will be taken the "[Your library name]:  Document Library Settings" page.  Click on Advanced Options and select "Yes" for "Allow Mangement of Content Types" and click Ok.  You will be taken back to the settings page where you will see a new area where you can manage your content types.  Click "add from existing content types" and in the window that pops up, add the Article Page content type and click OK.  Once again you will be taken back to the settings page.  Click on "Change new button order and default content type"  and on the new window that pops up, remove the check from the box for Document.  This will leave the only option available for your users, and the new default value as an Article Page.  Click OK, and navigate back to your document library page.  If you click on the New Item link, it should bring up an option to create a new Article Page.  You can hover your cursor over the New Item link, right click, and save that URL.  On the News site homepage, you can create a link so users can easilty create a new Article Page. I agree that a Publishing Portal will be better than using the Team Site template.

Please let me know if this helps.


Answer 5

Thanks Chris!

Very helpful indeed! Think I'm starting to get a hang of this now :)


I created a News and Press Items page from the news site template. Anonymous users have access to the web site and this page. When the url link is clicked to open the news site default page (../news/Pages/News%20Home.aspx), anonymous users are prompted for a username and password. As far as I can tell, all items on the New Home.aspx page have been published. What else can I check? 


I create “News Site” for put the news on it. In “Sample news Article” page I go to Site Actions->Edit page and change the content on sample new and put my desire news ,define  Article Date and Byline. And finally click on “Publish”.

Now I don’t know how I can put new news with new Article Date. I go to above path (that I mentioned) but I only can edit previous news and I don’t have new Article Date option!

I want to enter daily news,how I can put new news in “Sample News Article” page?

I’m very appreciated if anyone can help me.

I am getting numerous News Feed folders created in Outlook 2010.  How do I stop this from happening???


I am keep getting a news feed folder in my Outlook, is there anyway to stop this folder from being created over and over again.?


Im trying to link my site to the bbc uk news rss feed to display the headlines on my page with links to the bbc news site I know I need to pull the feed into an xml file and then display this data on my web page I'm thinking of making a control for the display and add the control to my home page can anyoen help me with this of send me a link on how to do it cheers 


Hello and thanks for reading. I've been working with the out-of-box SharePoint 2010 News Feed portion of My Sites, and I am planning to deploy it to many users.

I am building a console application which will iterate through all of the my sites currently in the system and un-check one of the "Activities I am following' for each user. I have used the example provided at this link(MSDN) to come up with the following code:


 Public Class ChangeActivity

 'Reference: http://msdn.microsoft.com/en-us/library/ff426883.aspx'

 Public Shared Sub ChangeActivityProperties()

		Using siteCol As New SPSite((My.Application.CommandLineArgs(0)))

					Dim context As SPServiceContext = SPServiceContext.GetContext(siteCol)

					Dim profileManager As New UserProfileManager(context)

					Dim profile As UserProfile = profileManager.GetUserProfile("THEDOMAIN\username")

					Dim activityMan As ActivityManager = New ActivityManager(profile, context)

					'Create an instance of a list of ActivityPreferencePerType objects.'

					Dim activityPrefsPerType As New List(Of ActivityPreferencePerType)(activityMan.ActivityTypes.Count)

					'Get each ActivityType stored in ActivityManager, and for testing purposes, set each ActivityType as a true ActivityPreference.'

					For Each activityType As ActivityType In activityMan.ActivityTypes

						If activityType.ActivityTypeNameLocStringName = "ActivityFeed_DLMembershipChange_Type_Display" Then


							Dim newPref As New ActivityPreferencePerType()

							newPref.ActivityType = activityType

							newPref.IsSet = False


							Console.WriteLine(activityType.ActivityTypeName + " " + activityType.ActivityTypeId.ToString())

						End If


					'Set activity preferences for the user.'



		End Using

 End Sub

 End Class

This code compiles and executes without error, but appears to have no affect on the Activities that the user is subscribed to for their news feed. Anyone else had a similar issue? It seems like it would be a common enough problem if one were to take a serious attempt at implementing My Sites in SharePoint 2010.

Thanks for your time, and your help in advance.





Doing some powershell sleuthing it appears that this might be a problem with my ActivityManager object.  I instantiate the ActivityManager object as above, passing in the UserProfile for the user "THEDOMAIN\username".  When I inspect the object after creating it, it appears that the "CurrentUserName" is set to the service account (which happens to be the account I am logged into on the machine).  MSDN describes the current user member of ActivityManager as:

"Gets a string representing the current user’s name."

The properties in the ActivityManager also appear to be configured like the Service Account's settings, rather than the "THEDOMAIN\username" user.




I create a new ActivityEntry and populate it - when I commit it it shows up on my profile page - however it does not show up in my colleagues news feed.

I know the timer jobs are running becuase I can create a noteboard entry and it shows up on their news feed.

The code I use to create the item is:

 ActivityManager oActivityManager = new ActivityManager(_profile, _context);
      long lActivityID = oActivityManager.ActivityTypes["NoteboardPosts"].ActivityTypeId;

      Entity owner = new MinimalPerson(_profile).CreateEntity(oActivityManager);
      Entity publisher = new MinimalPerson(_profile).CreateEntity(oActivityManager);

      ActivityEvent activityEvent = ActivityEvent.CreateActivityEvent(oActivityManager, lActivityID, owner, publisher);
      activityEvent.Name = oActivityManager.ActivityTypes["NoteboardPosts"].ActivityTypeName;
      activityEvent.ItemPrivacy = (int)Privacy.Public;
      activityEvent.Owner = owner;
      activityEvent.Publisher = publisher;
      activityEvent.Value = "I updated my profile image";
      activityEvent.PublishDate = DateTime.Now;
      Link prof = new Link();
      prof.Href = _profile.PublicUrl.ToString();
      prof.Name = _profile.DisplayName;
      prof.Value = _profile.DisplayName;

      activityEvent.Link = prof;
      activityEvent.Link2 = prof;




I am trying to create a site template base on an existing site and try to use the new site template to generate other sub-sites.  It sounds simple and the code is not that difficult to follow; however, Microsoft has made it impossible to accomplish by having a bug in their template creation process.


//Generate web template from existing website

using (SPSite site = newSPSite("http://localhost"))


SPWeb web = site.OpenWeb("/barrington/accounting");

web.SaveAsTemplate("NewDepartmentTemplate", "NewDepartmentTemplate", "NewDepartmentTemplate", true);



//Generate sub site using the new template

using (SPSite site = newSPSite("http://localhost"))


SPWeb web = site.OpenWeb("/barrington/accounting");

SPWebTemplate tp = null;

foreach (SPWebTemplate wt in web.GetAvailableWebTemplates((uint)1033))


if (wt.Title == "NewDepartmentTemplate")


tp = wt;




if (tp != null)


SPWeb newWeb = web.Webs.Add("NewDepartment", "NewDepartment", "NewDepartment", (uint)1033, tp, false, false);




Microsoft.SharePoint.SPException was unhandled
  Message=The content type name '$Resources:_FeatureId367b94a9-4a15-42ba-b4a2-32420363e018,DataSourceContentTypeName;' cannot contain: \  / : * ? " # % < > { } | ~ & , two consecutive periods (..), or special characters such as a tab.
  NativeErrorMessage=FAILED hr detected (hr = 0x8107058a)

       at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
       at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String& bstrWebTemplate, Int32& plWebTemplateId)
       at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate)
       at Microsoft.SharePoint.SPWeb.CreateWeb(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere)
       at Microsoft.SharePoint.SPWebCollection.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere)
       at ApplicationMaintainence.frmSharePointMaintenance.bttnProcess_Click(Object sender, EventArgs e) in C:\VS\SVN\EO\ApplicationMaintainence\frmSharePointMaintenance.cs:line 117
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at ApplicationMaintainence.Program.Main() in C:\VS\SVN\EO\ApplicationMaintainence\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Runtime.InteropServices.COMException
       Message=<nativehr>0x8107058a</nativehr><nativestack></nativestack>The content type name '$Resources:_FeatureId367b94a9-4a15-42ba-b4a2-32420363e018,DataSourceContentTypeName;' cannot contain: \  / : * ? " # % < > { } | ~ & , two consecutive periods (..), or special characters such as a tab.
            at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String& bstrWebTemplate, Int32& plWebTemplateId)
            at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, String& bstrWebTemplate, Int32& plWebTemplateId)


Hi ,

Since Fab 40 templates have not been upgraded to SP2010. We created sites from Application templates (2007).

After upgrade to SP2010 ,we saved the site created from KnowledgeBase as site template.

We are getting an error when we try to create a site from KnowledgeBase Site template saved in Solutions.

Error loading and running event receiver Microsoft.SharePoint.ApplicationTemplates.KnowledgeBaseEventHandler in KnowledgeBaseEventHandler, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.

Unable to load assembly group. The user assembly group provider was unable to provide any user assemblies for the specified assembly group.

Could anyone please suggest a solution or it is best to download the site templates from TechSolution site.





Hi, I'm very new to MOSS & I'm trying to find a way to populate labels in an ASP.NET site with content from a MOSS site. Also, I was told to look for a solution for doing the same thing for an image, without exposing the MOSS server in the URL of the image. The MOSS site is only meant to pilot the content of the informational sections of our website.

Thanks in advance for the help and if you need more info, please let me know. I'll try my best to explain it.




I am using SharePoint (Version: 12.0.6318.5000). The scenario is like that;

I have created a Site Collection and under that I have 2 sub sites and under each sub sites again I have a sub site (Site Collection [level 1]>>>SubSite+Lists [level 2]>>>SubSite+ Lists [level 3]>>>Lists, Doc. Library and Picture Library). I have modified a master page and given different name and used as custom and default master page throughout site collection. My master page is having some custom CSS and Image links (used $SPurl so that it should appear in all the sub sites). I have created Some Custom Pages using SharePoint Designer and saved at the same level of home page(default.aspx) of site collection and sub sites alsoNow I have used Solution generator to generate WSP (with the help of WSP Builder from Codeplex site) and created custom 3 different site definitions for each level. Our need was that, If we need to create any level we can easily create new sub site and all the custom pages, library will be available automatically

This WSP has been verified and accepted by our client and they have deployed in test environment. Due to some reason they used it as the live site and now they have lots of data in it.

Now my problem is if we take backup and restore it to the some other location using stsadm admin tool, all the navigations are showing 404 file not found error exceptsetting pages(_layouts/pagesnames.aspx).

Is any possible way of resolving this issue or any other alternatives of restoring data to other server with Custom Site Definition.

Thanks in Advanced



I am using MOSS2007. I have to implement one custom web part which will display following things

(1) latest Stock

(2) Weather Report

(3) Calendar similar to Google calendar


Can anyone help me around this.



I would like to know which approach would be the best to show breaking news which will craws horizontally in MOSS site



I would like to develop a custom web part to display news which is ahving similar functionality to below link http://timesofindia.indiatimes.com/tech/techhome/5880659.cms

My requirement is as follows


The News web part should contain a graphic, article headline and a story introduction with a link to the entire story.  This should contain links to view other articles.  The graphic and highlighted article will automatically rotate among a set number of stories.



Hi Experts!

How can i create a simple Internal News Site in Sharepoint 2010?

Have a native way or template to this?

Is there some sample?






1. I would need page where I can have only short news.

2. I need link to news(not that page) last 3 news.

Is something of this possible?




I have a requirement to create web part whcih has three colums. The web part will need to take a rss feed from news.com. The first colum is a picture the second column is the news feed 10 items split into 5 item columns and a third column with a read more which is a link to another page with all the news able to be displayed.

I have create a basic rss web part but how do I customise this web part to meet my requirments?


I recently installed Visual Studio 2005. My preferred language is C#.

The Start Page initially displayed the message "The current news channel might not be valid or your Internet connection might be unavailable. To change the news channel, on the Tools menu click Options, then expand Environment and click Startup."

All good stuff, but didn't help me get a valid Developer News connection. Unfortunately I tried to put in a URL from a microsoft website, overwriting the default URL. AND I didn't write down the default.

So now I can't get Developer News and can't set the Start page news channel URL back to the original value.

Anyone know the original value?


I want to create Latest News Banner which is Appear in my web Application in Right Side as A Container for News Text The Main Idea is how to make The News Move; what i mean is i have 5 News Only Appear but I want it Updated Automatically Read The Latest and Overwrite The Old;;"The New Append The Last Automatically in Move Effect"

Thanks Alot for Your Help and Support


I have created a page that I want to use as a template for future sites which shall have a familiar look.
I have saved it succesfully without encountering any obstacles, but when I then create a new site using the new template and goes to Site Settings, the globalnavigation items disappears and it exposes the entire CSS file instead of the globalnavigation items.

I have tried with several templates. I have de- and reactivated the Publishing Site feature and that didn't help either. I opened the .wsp files to see if any sitescopes was of the wrong entity. I have also googled the issue and found many solution proposals and tried them off but they didn't get the job done for me.

Do any of you know a solution to this problem?


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure