Consortium
Activities
Projects
Forge
Events
Log-in
Register
BlogRssCode
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
{pre} #if(!$sql) #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.ArticleClass' and obj.name<>'XWiki.ArticleClassTemplate' order by doc.date desc") #end #set($list = $xwiki.searchDocuments($sql)) #set($rsvc= $xwiki.xWiki.getRightService()) <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/" encoding="ISO-8859-1" > <channel rdf:about="$baseurl"> <title>$title</title> <link>$baseurl</link> <description> $description </description> <image rdf:resource="${baseurl}/xwiki/skins/default/logo.gif" /> <dc:language>$doc.defaultLanguage</dc:language> <dc:rights>$xwiki.webCopyright</dc:rights> <dc:publisher>$doc.author</dc:publisher> <dc:creator>$doc.author</dc:creator> <items> <rdf:Seq> #foreach ($item in $list) #if ($xwiki.hasAccessLevel("view", "${context.database}:${item}")) #set ($currentdoc = $xwiki.getDocument($item)) <rdf:li rdf:resource="${baseurl}/xwiki/bin/view/${currentdoc.web}/${currentdoc.name}" /> #end #end </rdf:Seq> </items> </channel> <image rdf:about="${baseurl}/xwiki/skins/default/logo.gif"> <title>XWiki Logo</title> <link>${baseurl}</link> <url>${baseurl}/xwiki/skins/default/logo.gif</url> </image> #foreach ($item in $list) #if ($xwiki.hasAccessLevel("view", "${context.database}:${item}")) #set ($currentdoc = $xwiki.getDocument($item)) #set ($url = "${baseurl}/xwiki/bin/view/${currentdoc.web}/${currentdoc.name}") #set($currentobj = $currentdoc.getObject("Main.ArticleClass",0)) #set($content = $currentdoc.extract) #if($content=="") #set($content = $currentdoc.display("content")) #if($content.length()>=400) #set($i = $content.lastIndexOf(" ",400)) #set($i = $i + 1) #set($content = "${content.substring(0,$i)} ... <a href='${url}'>continue</a>") #end #end #set ($desc = $xwiki.getXMLEncoded($doc.getRenderedContent($content))) <item rdf:about="$url"> <title>$currentdoc.display("title")</title> <link>$url</link> <description> $desc </description> <dc:date>$currentdoc.date</dc:date> <dc:contributor> <rdf:Description link=""> <rdf:value>$currentdoc.author</rdf:value> </rdf:Description> </dc:contributor> </item> #end #end </rdf:RDF> {/pre}