Wiki source code of Navigation
Last modified by Benjamin Fischer on 2025/05/27 11:36
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{velocity}} |
![]() |
7.1 | 2 | {{html wiki="true"}} |
![]() |
21.1 | 3 | #macro (navItem $rootName $depth=4 $childsMax=10 $childsMin=1 $level=1) |
![]() |
1.1 | 4 | #set ($rootDoc = $xwiki.getDocument($rootName)) |
5 | #set ($canView = $rootDoc.hasAccess("view")) | ||
6 | #if ($canView) | ||
![]() |
5.1 | 7 | #set ($children = $rootDoc.getChildren()) |
![]() |
9.1 | 8 | #set ($nChilds = $children.size()) |
![]() |
12.1 | 9 | #set ($hasChilds = (($level < $depth) && ($nChilds > 0))) |
![]() |
21.1 | 10 | <li#if($childsMin < $nChilds && $nChilds < $childsMax) class="open"#end>#if($rootDoc.getContent().isEmpty()&&$hasChilds) $rootDoc.plainTitle #else [[$rootDoc.plainTitle>>$rootDoc.fullName]] #end#if($hasChilds)<ul>#foreach($child in $children)#navItem ($child, $depth, $mathtool.sub($childsMax, 3), $childsMin, $mathtool.add($level, 1))#end</ul>#end</li> |
![]() |
1.1 | 11 | #end |
12 | #end | ||
![]() |
2.10 | 13 | * [[{{icon name="home"/}}Home>>Main.WebHome]] |
![]() |
2.4 | 14 | * ---- |
![]() |
2.10 | 15 | * [[{{icon name="book"/}}Material collection>>Material collection.WebHome]] |
![]() |
23.5 | 16 | * [[{{icon name="university"/}}People in ErUM-Data>>People in ErUM-Data.WebHome]] |
![]() |
23.4 | 17 | * [[{{icon name="industry"/}}Industry meets ErUM-Data>>Industry meets ErUM-Data.WebHome]] |
![]() |
23.6 | 18 | * [[{{icon name="briefcase"/}}Jobs in ErUM-Data>>Jobs in ErUM-Data.WebHome]] |
![]() |
16.1 | 19 | <li><br/></li> |
![]() |
5.1 | 20 | #navItem ("DIG-UM.WebHome") |
![]() |
23.3 | 21 | <li class="open">[[Program Planning.WebHome]]<ul> |
![]() |
23.2 | 22 | <li>[[2nd Workshop on Sustainability>>MoccaCalendar.Workshops.2nd Workshop on Sustainability in the Digital Transformation of Basic Research on Universe & Matter.Program Planning.WebHome]]</li> |
23 | </ul></li> | ||
![]() |
5.1 | 24 | #navItem ("Internal.WebHome") |
![]() |
23.1 | 25 | <li>[[ErUM-Data Call 2025.WebHome]]</li> |
![]() |
1.1 | 26 | #if ($hasEdit) |
![]() |
15.2 | 27 | <li><br/></li> |
![]() |
14.1 | 28 | <li class="open">{{icon name="question"/}} Help<ul> |
![]() |
15.1 | 29 | <li>[[XWiki Syntax Guide>>XWiki.XWikiSyntax]]</li> |
![]() |
18.1 | 30 | #if ($isAdvancedUser && $hasProgramming) |
31 | <li>[[XWiki Scripting API>>https://www.xwiki.org/xwiki/bin/view/ScriptingDocumentation/]]</li> | ||
32 | #end | ||
![]() |
14.1 | 33 | <li>[[{{icon name="font-awesome"/}}FontAwesome Icons>>https://fontawesome.com/v4/icons/]]</li> |
34 | </ul></li> | ||
![]() |
1.1 | 35 | #end |
![]() |
7.1 | 36 | {{/html}} |
![]() |
1.1 | 37 | {{/velocity}} |