Show last authors
1 **[[etvcCV.WebHome]]** - переход к пользовательскому разделу с данными
2
3 {{velocity}}
4 #macro(createDocumentTree $document $depth $level)
5 #if ($depth > 0)
6 #set($translated = $document.getTranslatedDocument())
7 #set($name = $translated.getName())
8 #set($fullname = $translated.getFullName())
9 #set($prefixed = $translated.getPrefixedFullName())
10 #set($where = "where doc.parent = '$name' or doc.parent = '$fullname' or doc.parent = '$prefixed' order by doc.name")
11 #if ($name == "WebHome")
12 #set($space = $document.getSpace())
13 #set($where = "where doc.space = '$space' and (doc.parent = '' or doc.parent = '$name' or doc.parent = '$fullname' or doc.parent = '$prefixed') and doc.name != 'WebHome' order by doc.name")
14 #end
15 #foreach($name in $xwiki.searchDocuments($where))
16 #if ($xwiki.getDocument($name))
17 #set($document = $xwiki.getDocument($name))
18 #set($translated = $document.getTranslatedDocument())
19 #set($prefixed = $translated.getPrefixedFullName())
20 #set($title = $translated.getDisplayTitle())
21 #set($indent = "")
22 #foreach($n in [1..$level])
23 #set($indent = "${indent}*")
24 #end
25 $indent [[$title>>$prefixed]]
26 #set($depth = $depth - 1)
27 #set($level = $level + 1)
28 #createDocumentTree($document $depth $level)
29 #set($depth = $depth + 1)
30 #set($level = $level - 1)
31 #end
32 #end
33 #end
34 #end
35 #createDocumentTree($doc 5 1)
36 {{/velocity}}