Changes for page Duncan1
Last modified by Alexandru Colesnicov on 2018/11/06 17:06
edited by Alexandru Colesnicov
on 2018/10/23 19:06
on 2018/10/23 19:06
edited by Alexandru Colesnicov
on 2018/11/04 17:53
on 2018/11/04 17:53
Change comment: There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -5,7 +5,7 @@ 5 5 #set($docName = ${request.docName}) 6 6 #set($targetDocName = "${request.spaceName}.${docName}") 7 7 #if(!$xwiki.exists($targetDocName) && $xwiki.hasAccessLevel('edit', $xcontext.user, $targetDocName)) 8 - $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)}")) 9 9 ## Stop processing, since we already sent a redirect. 10 10 #stop 11 11 #end ... ... @@ -51,3 +51,17 @@ 51 51 #set ($columns = ['doc.title', 'QuaWoman', 'QuaMan', 'doc.author', '_actions']) 52 52 #livetable('Duncan1' $columns $columnsProperties $options) 53 53 {{/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}}