Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-3) was last changed on 13-Aug-2007 18:18 by  

This page was created on 21-Nov-2006 01:43 by

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 15 added 31 lines
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);
// ...and exclude them
if (dontFeed.contains(page.getName()))
--JerryAndrews, 13-Aug-2007
Version Date Modified Size Author Changes ... Change note
3 13-Aug-2007 18:18 1.713 kB to previous
2 13-Aug-2007 18:07 0.725 kB JerryAndrews to previous | to last Comment by JerryAndrews
1 21-Nov-2006 01:43 0.519 kB to last
« This page (revision-3) was last changed on 13-Aug-2007 18:18 by