一般动作
登录
注册
Wiki:
games
▼
:
Document Index
»
Space:
Blog
▼
:
Document Index
»
Page:
GlobalBlogRss
搜索
default
页面动作
导出
▼
:
以PDF格式导出
以RTF格式导出
以HTML格式导出
更多动作
▼
:
打印预览
察看源码
欢迎进入Wiki
»
The Wiki Blog
»
Global Blog RSS feed generator
Wiki源代码
Global Blog RSS feed generator
在2011/11/06 20:09上被
Administrator
修改
内容
·
评论
(0)
·
Annotations
(0)
·
附件
(0)
·
记录
·
信息
隐藏行号
1: {{include document="Blog.BlogCode"/}} 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: #getBlogDocument($doc.space $blogDoc) 8: #getBlogTitle($blogDoc $title) 9: #set($feedMetadata = { 10: "title": $title, 11: "description": "Most recent blog posts in the wiki", 12: "url": $xwiki.getDocument('Main.WebHome').externalURL 13: }) 14: #getBlogEntriesBaseQuery($query) 15: $xwiki.feed.getBlogFeedOutput("${query} order by publishDate.value desc", 10, 0, $feedMetadata, 'rss_2.0') 16: {{/html}} 17: #end 18: {{/velocity}}