Wiki source code of Global Blog RSS feed generator
Last modified by Thomas Mortagne on 2020/01/28 14:25
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
10.1 | 1 | {{include reference="Blog.BlogCode"/}} |
| |
1.1 | 2 | |
| 3 | {{velocity filter="none"}} | ||
| 4 | #if("$!{request.xpage}" == 'plain' || "$!{request.xpage}" == 'rdf') | ||
| |
2.1 | 5 | $response.setContentType('application/rss+xml') |
| |
1.1 | 6 | {{html clean="false" wiki="false"}} |
| 7 | #getBlogDocument($doc.space $blogDoc) | ||
| 8 | #getBlogTitle($blogDoc $title) | ||
| 9 | #set($feedMetadata = { | ||
| 10 | "title": $title, | ||
![]() |
11.1 | 11 | "description": $services.localization.render('blog.code.description.wiki'), |
![]() |
9.1 | 12 | "url": $xwiki.getDocument($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('WIKI'))).externalURL |
| |
1.1 | 13 | }) |
![]() |
11.1 | 14 | #getAllBlogPostsQuery($query) |
| |
1.1 | 15 | $xwiki.feed.getBlogFeedOutput("${query} order by publishDate.value desc", 10, 0, $feedMetadata, 'rss_2.0') |
| 16 | {{/html}} | ||
| 17 | #end | ||
| 18 | {{/velocity}} |


