The What's New Web Part for SharePoint 2007

A long, long time ago, back in the SharePoint 2003 days, I created some pretty popular web parts which filled in some gaps the out-of-the-box functionality left open. In SharePoint 2007 most of those web parts are obsolete; for example the Breadcrumbs web part is not necessary anymore since SharePoint 2007 has breadcrumbs by default. But a lot of people contacted me to ask for a SharePoint 2007 version of the What's New web part. This web part displayed a list of new and changed items on site. It's arguable that this functionality is not needed anymore because in SharePoint 2007 we have RSS feeds, the Content Query Web Part (MOSS only) etc. But apparently some people like the simplicity of the original What's New web part so much ... and just for those people I've create a new SharePoint 2007 What's New web part! :-)

Of course the new version is better and improved! Internally it's making use of the SPSiteDataQuery class so it can also aggregate new and changed items from multiple sites (recursive from the current level, or the complete site collection). The web part has following configuration parameters:

  • Settings group
    • Number of items to show: determines the maximum number of items to show in the What's New web part.
    • Scope of the Query: determines where the What's New web part will check for new or changed items, possible values:
      • Site: the current site only
      • Recursive: the current site plus all the sub sites of the current site
      • Site Collection: the entire site collection of which the current site is a member
    • Cache interval: the number of seconds the results shown in the What's New web part will be cached. This cache is per user. After a change to the properties of the What's New web part, the cache is cleared automatically to reflect the changes.
    • Excluded Content Types: a list of content types which will be excluded from the results shown in the What's New web part. The list is separated with the ; character. For example "Folder;Task" will excluded all changes and additions of Folder and Task items.
    • Show header row: enables or disables the header row of the results list.
    • Group items on date: enables or disables grouping of the results based on their date
    • Allow group collapse: enables or disables the ability to collapse the groups if the Group items on date setting is enabled.
  • Columns to show: you can choose which columns you want to show in the results list
    • Modified: the Modified timestamp, including the date and time
    • Time: the modified time (excluding the date part)
    • Date: the modified date (excluding the time part)
    • List: a link to list or document library containing the item
    • Site: a link to the site of the list or document library containing the item
    • Modified By: the account who changed or added the item

The installation is very easy (and completely documented), there is a setup wizard that will guide you through the process (thank you WSPBuilder and SharePoint Solution Installer!). For more information, download and source code; visit the SmartTools for SharePoint CodePlex site.

8 Comments

  • This is fabulous!....was actually a recent requirment that was asked for....Will give it a try. Thanks

  • This webpart is great and really useful. The only problem is the language. Is there a easy way to modify the language.

  • 我部署了,但是在页面上添加web part时无法找到这个部件,不知道是什么原因?

  • Hi Jan,

    In basic it's a pretty darn fine tool. When configuring it though (e.g. the number of items to show), an exception occurs.

    Ongeldige lijstsjabloon.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: Ongeldige lijstsjabloon.

    Could you please help me out with this?

  • If the web site is Anonymous access, there is an error when open the web site. but for Authentication web site, it's OK, Could you please help me out with this?

  • How to Develop Webpart in .Net 2005 nad how to configur it with Sharpoint

  • I'm geting What's New: A Web Part of Web Form Control on this Page cannot be displayed or imported. The type is not registered as safe. I on;y installed this to my main site, not central and I did recently install SP1. Any thoughts?

  • For me it works sometimes - other times not, and I get this error:
    The "WhatsNewWebPart" Web Part appears to be causing a problem. Invalid list template.

Comments have been disabled for this content.