On Thu, May 15, 2008 at 6:33 PM, Antonio Goncalves
<antonio.mailing(a)gmail.com> wrote:
so I've tried several queries but in vain. I would like to do something like
that :
#set($query="where spaces='MySpace'")
#set($results = $xwiki.searchDocuments($query, 5, 0))
#foreach ($item in $results)
* $item <br/>
#end
Any idea ?
Hi,
You can try this :
#set($query="where doc.web='Main'")
#set($results = $xwiki.searchDocuments($query, 5, 0))
#foreach ($item in $results)
* $item <br/>
#end
Other examples are available here :
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples
--
Jean-Vincent Drean