| Title | Excluding wikipages from RSS feed |
| Date | 21-Nov-2006 01:43:00 EET |
| Version | 2.4.71 |
| Submitter | 64.236.208.25 |
| Bug criticality | EnhancementRequest |
| Browser version | Firefox 1.5.0.8 |
| Bug status | NewBug |
| PageProvider used | |
| Servlet Container | Tomcat 5.5.20 |
| Operating System | Linux RHEL 4 |
| URL | (RSS feed) |
| Java version | 1.5.0_06 |
Is there a way to exclude wikipages from the RSS feed? Such as permission-restricted pages (like pages that have permissions set to allow only a subset of people to access)?
We'd love to see that as well, both to allow us to restrict access to pages with restricted access (;O) and to prevent the feed from noting auto-generated pages.
Something like the following change to RSSGenerator would do the trick, though an additional check for secured pages would also be nice:
protected String generateFullWikiRSS( WikiContext wikiContext, Feed feed )
{
feed.setChannelTitle( m_engine.getApplicationName() );
feed.setFeedURL( m_engine.getBaseURL() );
feed.setChannelLanguage( m_channelLanguage );
feed.setChannelDescription( m_channelDescription );
Collection changed = m_engine.getRecentChanges();
// get the pages users have explicitly excluded from the feed
Collection dontFeed = m_engine.getReferenceManager().findRefersTo("ExcludeFromRSSFeed");
int items = 0;
for( Iterator i = changed.iterator(); i.hasNext() && items < 15; items++ )
{
WikiPage page = (WikiPage) i.next();
// ...and exclude them
if (dontFeed.contains(page.getName()))
continue;
--JerryAndrews, 13-Aug-2007