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
Show line numbers
#if("" == "$!{request.xpage}") #warning("This page contains the office importer auto-suggest script") #else #set($ok = $response.setContentType("text/xml")) #set($typeParam = "$!{request.type}") #set($numberParam = "$!{request.number}") #set($inputParam = "$!{request.input}") <results> #if("spaces" == $typeParam) #set($number = $util.parseInt($numberParam)) #if($number == 0)#set($number = 10)#end #set($matchingSpaces = $xwiki.searchSpacesNames("where lower(doc.space) like '%$inputParam.toLowerCase()%'", $number, 0, [])) #foreach($space in $matchingSpaces) <rs id="$velocityCount" info="">$space</rs> #end #end </results> #end