Code source wiki de TagsRss
Modifié par Administrator le 2007/07/12 17:29
Afficher les derniers auteurs
author | version | line-number | content |
---|---|---|---|
1 | #if($request.tag) | ||
2 | #set($sql = ", BaseObject as obj, DBStringListProperty as prop where obj.name=doc.fullName and obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' and '$request.tag' in elements(prop.list)") | ||
3 | #set ($description = "RSS feed for tag '$request.tag'") | ||
4 | #else | ||
5 | #set($sql = ", BaseObject as obj, DBStringListProperty as prop where obj.name=doc.fullName and obj.className='XWiki.TagClass' and obj.id=prop.id.id and prop.id.name='tags' and size(prop.list) > 0") | ||
6 | #set ($description = "RSS feed for all tags") | ||
7 | #end | ||
8 | #set ($list = $xwiki.searchDocuments($sql , 20 , 0)) | ||
9 | #set ($baseurl = "http://${request.serverName}") | ||
10 | #includeInContext("XWiki.WebRssCode") |