The out-of-the-box SharePoint RSS Viewer Web Part can be used more than just displaying a list of articles from your favorite blog or website. After the RSS Viewer Web Part downloads the feed, the web part uses XSLT to transform the RSS Feed from XML into HTML, and then your browser renders that HTML as human readable text. By changing the XSLT, you can create a different visual output. The following steps outline how to create a Weather RSS Viewer Web Part.
Step 1 – Add the RSS Viewer Web Part
Navigate to the page where you want to add the web part.
Change the page mode to edit, by selecting Edit Page from the Site Actions menu.
Then click on the Add a Web Part link in the appropriate zone.
Select the Default category.
Select the RSS Viewer Web Part.
Verify the correct zone is listed where you want the web part added.
Click the Add button to add the RSS Viewer Web Part to your page.
SharePoint will add the web part to the specified zone. The new web part will display a message that the RSS Viewer has not been configured, click on the link in the message to open the tool pane.
In the tool pane, enter the following URL as the RSS Feed URL, replacing 80202 with your 5 digit zip code.
http://weather.yahooapis.com/forecastrss?p=80202
Next, click the XSL Editor button, this will open a Text Editor window with the XSLT loaded. Replace the current XSLT with the contents of the Weather XLST file.
Click the Save button on the Text Dialog window, then click OK on the RSS Viewer Web Part Tool Pane. When the page refreshes you should have your weather information displayed like above.
The SharePoint RSS Viewer Web Part can be used to display many different types of information by simply editing the XSLT.


0 comments:
Post a Comment