Hi,
I started writing a velocity macro in a wiki to list in a table all pages (docs) containing a certain object. It works.
Now I would like :
To retrieve the language of the doc.
To retrieve the last updating date of the doc
To retrieve the other existing translations
Could I get a hint for the queries concerning these different properties?
{{velocity}}
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
$xwiki.ssfx.use("js/xwiki/table/table.css")
{{html wiki="true"}}
#set($hql = "select distinct doc from XWikiDocument as doc, BaseObject as obj where obj.name=doc.fullName and obj.className='Documentation.Code.SectionClass' order by doc.title asc")
#set($resulos = $xwiki.search($hql, 500, 0))
<table id="fred" class="grid sortable" style="width: 85%;">
<tr class="sortHeader">
<th style="width: 85%;">Title</th><th style="width: 15%;"></th>
</tr>
#foreach ($itemo in $results)
#set ($label = $itemo.getTitle())
<tr><td>[[$label>>$itemo]]</td><td align=right</td></tr>
#end
</table>
{{/velocity}}
4 posts - 2 participants