Last modified by Administrator on 2008/12/21 17:59

From version 1.1 Icon
edited by Administrator
on 2008/12/22 00:59
Change comment: Imported from XAR
To version Icon 2.1 Icon
edited by superadmin
on 2026/12/01 08:51
Change comment: Install extension [org.xwiki.contrib.blog:application-blog-ui/9.15.15]

Summary

Details

Icon Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Admin
1 +XWiki.superadmin
Default language
... ... @@ -1,1 +1,0 @@
1 -en
Syntax
... ... @@ -1,1 +1,1 @@
1 -XWiki 2.0
1 +XWiki 2.1
Content
... ... @@ -1,17 +1,17 @@
1 -{{include document="Blog.BlogCode"/}}
1 +{{include reference="Blog.BlogCode"/}}
2 2  
3 3  {{velocity filter="none"}}
4 4  #if("$!{request.xpage}" == 'plain' || "$!{request.xpage}" == 'rdf')
5 -$response.setContentType('application/rdf+xml')
5 +$response.setContentType('application/rss+xml')
6 6  {{html clean="false" wiki="false"}}
7 7  #getBlogDocument($doc.space $blogDoc)
8 8  #getBlogTitle($blogDoc $title)
9 9  #set($feedMetadata = {
10 10   "title": $title,
11 - "description": "Most recent blog posts in the wiki",
12 - "url": $xwiki.getDocument('Main.WebHome').externalURL
11 + "description": $services.localization.render('blog.code.description.wiki'),
12 + "url": $xwiki.getDocument($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('WIKI'))).externalURL
13 13   })
14 -#getBlogEntriesBaseQuery($query)
14 +#getAllBlogPostsQuery($query)
15 15  $xwiki.feed.getBlogFeedOutput("${query} order by publishDate.value desc", 10, 0, $feedMetadata, 'rss_2.0')
16 16  {{/html}}
17 17  #end