Wiki source code of Blog RSS Feed generator
Last modified by Jan Rhebergen on 2021/02/27 22:16
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{include reference="Blog.RssCode"/}} | ||
| 2 | |||
| 3 | {{velocity filter="none"}} | ||
| 4 | #if("$!{request.xpage}" == 'plain' || "$!{request.xpage}" == 'rdf') | ||
| 5 | $response.setContentType('application/rss+xml') | ||
| 6 | {{html clean="false" wiki="false"}} | ||
| 7 | ## | ||
| 8 | ## | ||
| 9 | ## | ||
| 10 | #if ("$!doc.getObject($blogClassname)" != '') | ||
| 11 | #set ($blogDoc = $doc) | ||
| 12 | #else | ||
| 13 | #getTargetBlog($blogDoc) | ||
| 14 | #end | ||
| 15 | #getBlogEntries($blogDoc $entries) | ||
| 16 | #set($entries = $xwiki.wrapDocs($entries)) | ||
| 17 | #displayBlogRss($blogDoc $entries) | ||
| 18 | {{/html}} | ||
| 19 | #end | ||
| 20 | {{/velocity}} |