Friday, March 21, 2008 1:23 PM Jan Tielens

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.

Filed under:

Comments

# Dew Drop - March 21, 2008 | Alvin Ashcraft's Morning Dew

Pingback from  Dew Drop - March 21, 2008 | Alvin Ashcraft's Morning Dew

# re: The What's New Web Part for SharePoint 2007

Friday, March 21, 2008 11:07 AM by Raj

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

# re: The What's New Web Part for SharePoint 2007

Friday, March 21, 2008 10:51 PM by JMR

Thank you!  You just saved my Easter weekend.

# Bookmarking the web - w12/2008

Saturday, March 22, 2008 7:47 AM by Bookmarking the web - w12/2008

Pingback from  Bookmarking the web - w12/2008

# Several very useful open source add-ons and tools for SharePoint recently released

When CodePlex, which is Microsoft's open source project hosting web site, launched almost 2 years ago,

# 2 Nuevos WebParts en Codeplex

Monday, March 24, 2008 10:36 PM by Mirrored Blogs

Todos los dias sigue sorprendiendo CODEPLEX como comunidad de desarrolladores y los excelentes trabajos

# MSDN Blog Postings » Several very useful open source add-ons and tools for SharePoint recently released

Pingback from  MSDN Blog Postings  » Several very useful open source add-ons and tools for SharePoint recently released

# MSDN Blog Postings » Several very useful open source add-ons and tools for SharePoint recently released

Pingback from  MSDN Blog Postings  » Several very useful open source add-ons and tools for SharePoint recently released

# re: The What's New Web Part for SharePoint 2007

Tuesday, March 25, 2008 2:29 AM by Lauri V, Finland

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

# Several very useful open source add-ons and tools for SharePoint recently released | SharePointed

Pingback from  Several very useful open source add-ons and tools for SharePoint recently released | SharePointed

# SharePoint Kaffeetasse #50

Monday, March 31, 2008 3:55 AM by SharePoint, SharePoint and stuff

Holla - schon die 50.te Ausgabe der Kaffeetasse .... Anpassungs-Projekt Building a news workbench on

# re: The What's New Web Part for SharePoint 2007

Monday, March 31, 2008 3:56 AM by wang

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

# SharePoint Kaffeetasse #50

Monday, March 31, 2008 4:55 AM by Mirrored Blogs

Holla - schon die 50.te Ausgabe der Kaffeetasse .... Anpassungs-Projekt Building a news workbench on

# re: The What's New Web Part for SharePoint 2007

Friday, April 04, 2008 7:30 AM by Gene Gobus

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?

# Interesante WebPart - "What’s New" « Jorge Dieguez Blog

Pingback from  Interesante WebPart - "What’s New" « Jorge Dieguez Blog

# Interesante WebPart - "What's New"

Saturday, April 05, 2008 2:41 PM by Jorge Dieguez Blog

El típico elemento que tantos clientes quieren poner en su Portal:-) Este WebPart muestra los elementos

# Interesante WebPart - "What's New"

Saturday, April 05, 2008 2:52 PM by Jorge Dieguez Blog

El típico elemento que tantos clientes quieren poner en su Portal:-) Este WebPart muestra los elementos

# re: The What's New Web Part for SharePoint 2007

Saturday, April 12, 2008 9:01 PM by daniel

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?

# re: The What's New Web Part for SharePoint 2007

Friday, April 18, 2008 12:33 AM by Mallikarjuna

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

# re: The What's New Web Part for SharePoint 2007

Wednesday, April 23, 2008 9:59 PM by Don

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?

# re: The What's New Web Part for SharePoint 2007

Tuesday, May 06, 2008 10:24 PM by Violaine

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.

# re: The What's New Web Part for SharePoint 2007

Thursday, May 08, 2008 3:39 AM by David

When searching recursively, or the site collection, an error is returned saying that the number of lists is too large. Any hint on how to overcome this?

# sharepoint web parts

Tuesday, June 03, 2008 11:17 AM by sharepoint web parts

Pingback from  sharepoint web parts

# ?bersichtsliste ?ber neue Eintr?ge/?nderungen im Sharepoint | hilpers

Pingback from  ?bersichtsliste ?ber neue Eintr?ge/?nderungen im Sharepoint | hilpers

# The What's New Web Part for SharePoint

Wednesday, July 15, 2009 5:14 PM by SharePoint Blank

For the third time in as many weeks, a SharePoint Blank Mailbag investigation has ended up leading me