Hi Tjaart, Here we go at last : #set($query="select obj from BaseObject obj where obj.className='Contacts .ContactClass'") #set($results=$xwiki.searchDocuments($query, 10, 1)) #foreach($item in $results)
#set ($itemdoc = $xwiki.getDocument($item)) #set ($itemobject = $itemdoc.getObject('Contacts.ContactClass')) $itemdoc.display('firstname') | $itemdoc.display('lastname') | $itemdoc.display('phone1') <br /> #end Hopefully this will work... Guillaume _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users