Wiki source code of Tree
Last modified by Jean-Vincent Drean on 2009/03/06 16:41
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | #if($request.input) | ||
2 | $response.setContentType('text/xml') | ||
3 | #set($input = $request.input.toLowerCase()) | ||
4 | <?xml version="1.0" ?> | ||
5 | <results type="8"> | ||
6 | #foreach($item in $xwiki.searchDocuments(" where lower(doc.fullName) like '%${input}%'", 8, 0)) | ||
7 | <rs id="${velocityCount}" info="">$item</rs> | ||
8 | #end | ||
9 | </results> | ||
10 | #else | ||
11 | ## Smartclient | ||
12 | $xwiki.jsfx.use("js/smartclient/initsc.js") | ||
13 | $xwiki.jsfx.use("js/smartclient/modules/ISC_Core.js") | ||
14 | $xwiki.jsfx.use("js/smartclient/modules/ISC_Foundation.js") | ||
15 | $xwiki.jsfx.use("js/smartclient/modules/ISC_Containers.js") | ||
16 | $xwiki.jsfx.use("js/smartclient/modules/ISC_Grids.js") | ||
17 | $xwiki.jsfx.use("js/smartclient/modules/ISC_Forms.js") | ||
18 | $xwiki.jsfx.use("js/smartclient/modules/ISC_DataBinding.js") | ||
19 | $xwiki.jsfx.use("js/smartclient/skins/Enterprise/load_skin.js") | ||
20 | ## XWikiExplorer | ||
21 | $xwiki.jsfx.use("js/xwiki/xwikiexplorer/xwikiexplorer.js", true) | ||
22 | ## Suggest | ||
23 | $xwiki.ssfx.use("js/xwiki/suggest/ajaxSuggest.css") | ||
24 | $xwiki.jsfx.use("js/xwiki/suggest/ajaxSuggest.js") | ||
25 | ## | ||
26 | {pre}## | ||
27 | <script> | ||
28 | var blacklistedSpaces = { | ||
29 | #foreach($space in $blacklistedSpaces) | ||
30 | $space : true, | ||
31 | #end | ||
32 | }; | ||
33 | XWiki.xwikiExplorer.create({ | ||
34 | width:600, | ||
35 | height:300, | ||
36 | displayAttachments:true, | ||
37 | displayLinks:true, | ||
38 | blacklistedSpaces:blacklistedSpaces | ||
39 | }); | ||
40 | </script> | ||
41 | {/pre}## | ||
42 | #end | ||
43 | #set($docextras = []) |