# 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

Hide last authors

author | version | line-number | content
--- | --- | --- | ---
| 4.8 | 1 | {{velocity}}
| 1.1 | 2 |
| 4.6 | 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 |
| 4.8 | 42 | {{/velocity}}
| 4.6 | 43 |
| 4.7 | 44 | {{velocity}}
|  | 45 |
| 1.1 | 46 | #set($class="Duncan1.Code.GDataClass")
|  | 47 | #set($template="Duncan1.Code.GDataTemplate")
| 4.1 | 48 | #set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' order by doc.date desc")
| 1.1 | 49 | #set($list=$services.query.xwql($xwlquery).execute())
|  | 50 |
| 2.1 | 51 | $list.size()
| 1.1 | 52 |
| 4.5 | 53 | #set($class="Duncan1.Dunca.GDataClass")
| 4.4 | 54 | #set($xwlquery="from doc.object($class) as obj order by doc.date desc")
| 3.1 | 55 | #set($list=$services.query.xwql($xwlquery).execute())
|  | 56 |
|  | 57 | $list.size()
|  | 58 |
| 2.1 | 59 | {{/velocity}}
| 1.1 | 60 |

# Applications

# Tips

If you're a new XWiki user, check out the Getting Started Guide.

# Need help?

If you need help with XWiki you can contact:

- Community Support
- Professional Support

XWiki Debian 11.5