Hi,
I’m using “$xwiki.searchDocuments”, but it appears in the xwiki log which is a deprecated method.
What is the best alternative?
Excerpt of code used:
{{velocity}}
$xwiki.ssfx.use("css/lista_telefonica.css")
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
#set($hql = "where parent='Intranet.Lista Telefônica' order by name")
#set($results = $xwiki.searchDocuments($hql, 0, 0))
{{html}}
#foreach ($item in $results)
#set($doc = $xwiki.getDocument($item))
#if($doc.getTitle() != 'Atualizações')
<a href="#$doc.getId()">$doc.getTitle().replaceAll('.* - ', '')</a>
#end
#end
{{/html}}
{{/velocity}}
Thanks in advance.