Wiki source code of Document Tree

Last modified by superadmin on 2026/11/28 04:18

Show last authors
1 {{include reference="XWiki.DocumentTreeMacros" /}}
2
3 {{velocity wiki="false"}}
4 #if ($xcontext.action == 'get')
5 #updateDocTreeConfigFromRequest
6 #handleDocumentTreeRequest
7 #end
8 {{/velocity}}
9
10 {{velocity}}
11 #if ($xcontext.action != 'get')
12 == Document Hierarchy Tree ==
13
14 {{documentTree /}}
15
16 === Compact Document Hierarchy Tree ===
17
18 {{documentTree compact="true" /}}
19
20 == Wiki > Space > Page Tree ==
21
22 {{documentTree showWikis="true" showSpaces="true" showTranslations="false" showAttachments="false" showChildDocuments="false" /}}
23
24 == Full Entity Tree ==
25
26 {{documentTree showWikis="true" showWikiPrettyName="false" showSpaces="true" showDocumentTitle="false"
27 showChildDocuments="false" showObjects="true" showClassProperties="true" /}}
28 #end
29 {{/velocity}}

#panelheader($msg.get("xe.panels.quicklinks"))

  • [L3D Calendar>L3D Calendar.WebHome]
  • [$msg.get("xe.panels.quicklinks.dashboard")>Main.WebHome]
  • [$msg.get("xe.panels.quicklinks.index")>Main.AllDocs]
  • [$msg.get("xe.panels.quicklinks.blog")>Blog.WebHome]
  • [$msg.get("xe.panels.quicklinks.sandbox")>Sandbox.WebHome]
    #if ($xwiki.hasAdminRights())
    <p style="font-size:0.75em;padding-left:8px;"><a href="$xwiki.getDocument("Panels.QuickLinks").getURL("inline")">$msg.get("xe.panels.edit")</a></p>
    #end
    #panelfooter()

#set($recentDocs = $xwiki.searchDocuments("where 1=1 and doc.author='$context.user' order by doc.date desc", 5, 0))
#if($recentDocs.size() > 0 || $showEmptyPanels)
#panelheader($msg.get("xe.panels.modifications.my"))
#set($first = true)
#foreach($docname in $recentDocs)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
#if($first == true)
#set($first = false)
#else
<span class="pitemseparator"> | </span>
#end
<span class="panelitem"><a href="$rdoc.getURL("view")">$rdoc.displayTitle</a></span>
#end
#panelfooter()
#end