Toggle navigation
Log-in
Home
Page Index
User Index
Application Index
Global
Wiki Index
Blog
Global Blog RSS feed generator
Wiki source code of
Global Blog RSS feed generator
Last modified by eaminov on 2017/06/14 01:05
Show line numbers
{{include reference="Blog.BlogCode"/}} {{velocity filter="none"}} #if("$!{request.xpage}" == 'plain' || "$!{request.xpage}" == 'rdf') $response.setContentType('application/rss+xml') {{html clean="false" wiki="false"}} #getBlogDocument($doc.space $blogDoc) #getBlogTitle($blogDoc $title) #set($feedMetadata = { "title": $title, "description": $services.localization.render('blog.code.description.wiki'), "url": $xwiki.getDocument($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('WIKI'))).externalURL }) #getBlogEntriesBaseQuery($query) $xwiki.feed.getBlogFeedOutput("${query} order by publishDate.value desc", 10, 0, $feedMetadata, 'rss_2.0') {{/html}} #end {{/velocity}}