# Wiki source code of Dunca2Duncan

Last modified by Alexandru Colesnicov on 2018/11/09 17:47
Export
Office Formats
Export as PDF
Other Formats

Select the pages to export:

select all / none

Export as HTML

Show last authors

author | version | line-number | content
--- | --- | --- | ---
1 | {{velocity}}
2 |
3 | #set ($MAXDEPTH = 5)
4 | #panelhiddenheader("Navigation")
5 | #set ($hiddenSpaces = ["XWiki", "Admin", "Panels"])
6 | #set ($hiddenPages = ["Main.WebRss", "Main.WebSearch", "Main.LuceneSearch", "Main.WebSearchRss", "Main.BlogRss", "Blog.Macros", "Main.TagsRss", "Main.RegisterNewUserAction", "Main.SpaceIndex", "Blog.Category"])
7 | #set ($blackListedPages = ["WebPreferences"])
8 | <div id="xwikinavcontainer">
9 | #set($spaces = $xwiki.spaces)
10 | #set($i = 0)
11 | #set($spacecount = 0)
12 | <div id="xwikinav">
13 | #foreach($space in $spaces)
14 | #if (!$hiddenSpaces.contains($space) || ($hiddenSpaces.contains($space) && $xwiki.hasAdminRights()))
15 | #if ($doc.web == $space)
16 | #set ($spacecount = $i)
17 | #end
18 | #set($i = $i + 1)
19 | #set($spaceWebHome = $space + "." + "WebHome")
20 | <div class="accordionTabTitleBar"><h6>[$space>$spaceWebHome]</h6></div>
21 | #if ($doc.web == $space)
22 | <div class="accordionTabContentBox">
23 | #set($tree = $xwiki.doctree.getSpaceDocumentTree($space,false))
24 | #set($depths=["", "-", "--", "---", "----", "-----", "------", "-------", "--------"])
25 | #foreach($leaf in $tree)
26 | #set($leafName = $leaf.fullName)
27 | #set($dotIndex = $leafName.indexOf(".")+1)
28 | #set($pageName = $leafName.substring($dotIndex, $leafName.length()))
29 | #set($pageLink = $space + "." + $pageName)
30 | #if($leaf.depth > 0 && $leaf.depth < $MAXDEPTH)
31 | $depths.get($leaf.depth) [$xwiki.getDocument($pageLink).getDisplayTitle()>$pageLink]
32 | #end
33 | #end
34 | </div>
35 | #end
36 | #end
37 | #end
38 | </div>
39 | </div>
40 | #panelfooter()
41 |
42 | {{/velocity}}
43 |
44 | {{velocity}}
45 |
46 | #set($class="Duncan1.Code.GDataClass")
47 | #set($template="Duncan1.Code.GDataTemplate")
48 | #set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' order by doc.date desc")
49 | #set($list=$services.query.xwql($xwlquery).execute())
50 |
51 | $list.size()
52 |
53 | #set($class="Duncan1.Dunca.GDataClass")
54 | #set($xwlquery="from doc.object($class) as obj order by doc.date desc")
55 | #set($list=$services.query.xwql($xwlquery).execute())
56 |
57 | $list.size()
58 |
59 | {{/velocity}}
60 |

# Applications

# 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:

- Community Support
- Professional Support

XWiki Debian 11.5