Modifying a page in SharePoint 2010 breaks the XML Viewer WebPart

In SharePoint 2007 it was a known fact that when you edit a page with SharePoint designer, unexpected behavior could occur after saving it! Extra tags in your MasterPage, PageLayout and style references you don’t want..

I now have come to the conclusion that this hasn’t changed in SharePoint 2010.

Place an XML Viewer WebPart on a SharePoint 2010 page, edit the XSL for that WebPart(For instance: Display a RSS Feed)  and save the page.

When you now open that same page with SharePoint designer, do some adjustments on listviews, dataviews or change a random property on that page, save it, the XML Viewer WebPart is broken!

What happens?

After editing the page with SharePoint Designer some extra “enters”(CR) are put in the XSL of the XML Viewer WebPart and thus the WP is not displaying anything anymore…

Original:

image

After SPD:

image

Which results in a XML Viewer WebPart not displaying the requested results anymore..

image

“Solution/Workaround”:

Put your XSL Style Sheet in a separate file on the SharePoint site, and refer to that file from the XML Viewer WebPart so that SharePoint Designer cannot screw up the XSL anymore..

image

XML Viewer WebPart displaying some random RSS Feed.. (oh I don’t drink Heineken btwKnipogende emoticon)

image

The “What’s New” WebPart in a SharePoint 2010 Group Work Site

In SharePoint 2010 there is a new template called “Group Work Site”. A Group Work site is basically just a Blank Site template with some extra added WebParts that stimulate group activities such as:

  • Group Calendar (Use the Calendar list to keep informed of upcoming meetings, deadlines.)
  • Circulations (Use this list to inform team members and request confirmation stamps.)
  • Phone Call Memo (Use this list to share the incoming phone call information.)
  • Resources (Use this list to document shared assets, such as cameras and vehicles. Users can reserve and track listed resources in Group Calendar.)
  • Whereabouts (Use this list to quickly and easily track the location of individuals throughout the day.)
    image

After creating a SharePoint site based upon the “Group Work Site” template you immediately will notice the purpose of the site, if that was not already clear to you due to the obvious template title ;)… There is a BIG calendar view on the homepage!

image

The WebPart I would like to demo is the “What’s New” WebPart which allows you to have updated information always available in just one view, the homepage!image

What does it do?

It displays all items from pre-selected lists where your username occurs in a pre determined column, to make that more clear a screenshot with the WebPart settings:

As you can see you are free to add or remove a list from the “What’s New” WebPart.

Important: At the bottom of the WebPart settings there is a line:

Only lists that have indexes on [Modified] column can be added to this web part. To enable index, go to the list setting page

 

 

 

 

 

 

 

When you have created a custom list or for instance a document library, just click on “Metadata navigation settings”.In the next properties window you can configure key filters, there you need to add the “Modified” column.

image

This makes sure that you can select your custom document library in the “What’s New” WebPart so that you get to see updates from that library as well.

image

Select the column that you want the “What’s New” WebPart to filter with your username.

Off course you can think of solutions where you have added a custom column of the type “Person or Group” and filter by that column in the “What’s New” WebPart.

Result:

Pretty basic overview of items in different lists.

image

It can also show your items with a little bit more details:

image

Conclusion:

Easy to use, easy to configure query WebPart that keeps you updated on a user friendly manner.

Handy!