From version < 3.1 >
edited by Alexandru Colesnicov
on 2018/10/23 19:05
To version < 7.1 >
edited by Alexandru Colesnicov
on 2018/10/31 16:23
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,18 +1,25 @@
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
14 14  #end
15 15  
14 +{{/velocity}}
15 +
16 +{{python}}
17 +import sys
18 +print sys.path
19 +{{/python}}
20 +
21 +{{velocity}}
22 +
16 16  = Add a new record =
17 17  
18 18  #if("$!targetDocName" != '' && $xwiki.exists($targetDocName))

Tips

Did you know that you can improve XWiki? Take 5 minutes to fill this survey and help this open source project!

Need help?

If you need help with XWiki you can contact: