List All Documents In A Space Snippet
List All Documents In A Space Snippet
This example lists all documents in the Blog space:{{velocity}}
#set($hql = "where doc.space='Blog' order by doc.date asc")
#set($results = $xwiki.searchDocuments($hql, 0, 0))
#foreach ($item in $results)
* $item
#end
{{/velocity}}