Site Templates and Retaining Web Part Configuration Settings

Several folks have asked me about this recently so I thought I would post the answer.

Q:Why don't site templates (STPs) maintain webpart configurations when I use them to create new sites?

Scenario:

You create a new list, such as a Custom List, on a Microsoft Windows SharePoint Services 3.0 site.

On the Windows SharePoint Services 3.0 site that hosts the new list, you add a List View Web Part.

You edit the List View Web Part, and then you change the default view.

You click Site Actions, and then you click Site Settings.

On the Site Settings page, you click Save Site as template under Look and Feel.

In this scenario, when you try to use the template to create a new Windows SharePoint Services 3.0 site, the List View Web Part in the new site displays the default columns. Additionally, the changes that you make to the List View Web Part are not retained.

There is a KB article that describes this behavior and a fix is available:

Changes that you make to the "List View" Web Part are not retained after you save the site as a template in Windows SharePoint Services 3.0 

</steve>