Tuesday, April 2, 2013

Render (Published Mode/Edit Mode) OOTB RSS Control

Worked on an OOTB Rss Control web part in O365. It suddenly stopped working on the Home Page. It still works fine on a couple of other pages, but stopped working on the Home Page. The stopped working means that the "loading graphic" stays on Home Page and the RSS Feed never gets rendered. The moment you go into the edit mode, the RSS feed is rendered correctly. This is one of the strangest issues I have seen either this is something related to Office 365?

Here is what I did
  • Master Page is same across the site. Same set of JS/CSS files are loaded on all pages.
  • PageLayout is different. Tried all combinations with using same page layout/rebuilding page layout/ adding components 1 by 1, but still would not work.
  • There are not many configuration settings that you can modify for OOTB RSS Feed.  
Spent lot of hours in order to troubleshoot this crazy issue. Still could not resolve the issue other than this:

Solution:
Used XMLViewer WebPart in place of RSS Control web part and then wrote XSLT used for rendering the content. The 2 things to note here are that
  1. Produce the same look & feel
  2. Limit the Results to a certain number.
This was accomplished, by literally adding the same styles that existed in XSLT/OOTB Control and adding logic to limit to certain number.







No comments:

Post a Comment