[xwiki-users] RSS feed on Tags
Hello, By browsing on Main.Tags in my 2.2.1 instance, I found that there was a RSS Feed link for a specific tag, on each tag page. But practically it seems not implemented, as what was returned was the global wiki RSS, not restricted to a particular tag. So I implemented it in Main.WebRss. Here is an extract of Main.WebRSS page that treats "tag" parameter. As you can see it misses a correct $description setting, because I don't know where is the translation ... #if("$!{request.space}" == '' && "$!{request.tag}" == '') ## RSS feed for the whole wiki #set ($request = 'where 1=1 order by doc.date desc') #set ($description = $msg.get('xe.rss.feed.description')) #elseif("$!{request.tag}" != '') ## RSS feed for a single tag #set ($request = ", BaseObject as obj, DBStringListProperty as tags, IN(tags.list) tagsvalue where obj.name=doc.fullName and obj.className='XWiki.TagClass' and tags.id.id=obj.id and tags.id.name='tags' and tagsvalue='${request.tag}' order by doc.date desc") #set ($description = "RSS Feed for a specific tag") #else ## RSS feed for a single space #set ($request = "where doc.space='${request.space}' order by doc.date desc") #set ($description = $msg.get('xe.rss.space.description', [$request.space])) #end Best regards, Jeremie
participants (1)
-
Jeremie BOUSQUET