From version < 3.1 >
edited by Alexandru Colesnicov
on 2018/10/23 19:05
To version < 16.1 >
edited by Alexandru Colesnicov
on 2018/11/04 18:00
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,13 +1,11 @@
1 1  {{velocity}}
2 2  
3 -{{velocity}}
4 -
5 5  #if("$!request.docName" != '')
6 6   ## Request for creating a new instance
7 7   #set($docName = ${request.docName})
8 8   #set($targetDocName = "${request.spaceName}.${docName}")
9 9   #if(!$xwiki.exists($targetDocName) && $xwiki.hasAccessLevel('edit', $xcontext.user, $targetDocName))
10 - $response.sendRedirect($xwiki.getURL($targetDocName, 'inline', "template=${escapetool.url($request.template)}&parent=${escapetool.url($request.parent)}"))
8 + $response.sendRedirect($xwiki.getURL($targetDocName, 'inline', "template=${escapetool.url($request.template)}&title=${request.docName}&parent=${escapetool.url($request.parent)}"))
11 11   ## Stop processing, since we already sent a redirect.
12 12   #stop
13 13   #end
... ... @@ -53,3 +53,17 @@
53 53  #set ($columns = ['doc.title', 'QuaWoman', 'QuaMan', 'doc.author', '_actions'])
54 54  #livetable('Duncan1' $columns $columnsProperties $options)
55 55  {{/velocity}}
54 +
55 +{{python}}
56 +print "The full name of this document is " + doc.getFullName()
57 +import sys
58 +print sys.path
59 +{{/python}}
60 +
61 +{{velocity}}
62 +#set($hql = "")
63 +#set($results = $xwiki.searchDocuments($hql, 5, 0))
64 +#foreach ($item in $results)
65 + * $item
66 +#end
67 +{{/velocity}}

Tips

You can click on the arrows next to the breadcrumb elements to quickly navigate to sibling and children pages.

Need help?

If you need help with XWiki you can contact: