General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
OfficeImporterSuggest
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Wiki Home
»
XWiki Space
»
Office Importer
»
Office Importer Suggest
Wiki source code of
Office Importer Suggest
Last modified by
Administrator
on 2009/05/27 19:50
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: 2: #if("" == "$!{request.xpage}") 3: #warning("This page contains the office importer auto-suggest script") 4: #else 5: #set($ok = $response.setContentType("text/xml")) 6: #set($typeParam = "$!{request.type}") 7: #set($numberParam = "$!{request.number}") 8: #set($inputParam = "$!{request.input}") 9: <results> 10: #if("spaces" == $typeParam) 11: #set($number = $util.parseInt($numberParam)) 12: #if($number == 0)#set($number = 10)#end 13: #set($matchingSpaces = $xwiki.searchSpacesNames("where lower(doc.space) like '%$inputParam.toLowerCase()%'", $number, 0, [])) 14: #foreach($space in $matchingSpaces) 15: <rs id="$velocityCount" info="">$space</rs> 16: #end 17: #end 18: </results> 19: #end