Toggle navigation
Log-in
Wiki Index
Page Index
User Index
Application Index
Blog
Global Blog RSS feed generator
Wiki source code of
Global Blog RSS feed generator
Last modified by superadmin on 2016/07/29 17:18
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('xe.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}}