OK, I have found a resolution. I put $xwiki.flushCache() at the start of my
code and all is right.
Martin
Martin Molhanec wrote:
Hello, I have written the following testing code:
Purpose is to enumarate the headers in my blog, I want to create an XWiki
panel which will show the headers from my blog.
#set($myblogsite="http://andrea4.feld.cvut.cz:8080/xwiki/bin/view/Main/BlogRss?xpage=rdf")
#set($myfeed=$xwiki.feed.getFeed($myblogsite))
Title of blog: ${myfeed.getTitle()}\\
Link to blog site: ${myfeed.getLink()}\\
Link to blog: $myblogsite\\\\
#set($myfeedEntries=$myfeed.getEntries())
#set($_i=0)
#foreach ($item in $myfeedEntries)
#set($_i=$_i+1)
Item: $_i)\\
Title: "$item.getTitle()"\\
Contents:($item.getDescription().value)\\
#end
\\Sum: $_i message(s)\\
----
{rss:feed=$myblogsite|full=true}
The testing page is here:
http://andrea4.feld.cvut.cz:8080/xwiki/bin/view/Sandbox/pokus4
and here
http://andrea4.feld.cvut.cz:8080/xwiki/bin/view/Sandbox/pokus3
Interestingly my own blog has 3 messages and I can enumerate only one.
But, test with the blog from
xwiki.com is right.
Any help?
--
View this message in context:
http://n2.nabble.com/blog-rss-headers-enumeration-tp794045p835955.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.