Wiki source code of CommentsRss
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #if (("$!request.xpage" == 'plain' || "$!request.xpage" == 'rdf') && "$!request.outputSyntax" != 'plain') | ||
3 | $response.sendRedirect($xwiki.getURL($doc.fullName, 'view', 'xpage=plain&outputSyntax=plain')) | ||
4 | #end | ||
5 | #if ("$!request.xpage" == 'plain' && "$!request.outputSyntax" == 'plain') | ||
6 | $response.setContentType('application/rss+xml') | ||
7 | #set ($query = "select obj.name from BaseObject obj where obj.className='ForumCode.AnswerClass' and obj.name<>'ForumCode.AnswerTemplate'") | ||
8 | #set ($queryObject = $services.query.hql($query)) | ||
9 | #set ($feed = $xwiki.feed.getWebFeed($queryObject.execute())) | ||
10 | #set ($discard = $feed.setPublishedDate($datetool.date)) | ||
11 | $xwiki.feed.getFeedOutput($feed, 'rss_2.0') | ||
12 | #end | ||
13 | {{/velocity}} |