Changes for page Menu content

Last modified by Ricardo Julio Rodríguez Fernández on 2026/06/12 19:48

From version 1.8
edited by Ricardo Julio Rodríguez Fernández
on 2024/08/16 22:59
Change comment: There is no comment for this version
To version 3.1
edited by Ricardo Julio Rodríguez Fernández
on 2026/06/12 19:48
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -63,11 +63,11 @@
63 63  ## <!-- Tabs -->
64 64  #set ($MyTabStr=${MyTabStr} + '<ul id="top-menu-tabs" class="nav nav-tabs navbar-inverse">')
65 65  ## HOME icon
66 -#set ($MyTabStr=${MyTabStr} + '<li class="menu-panel"><a href="' + $services.rendering.escape($escapetool.xml($xwiki.getURL('Main.WebHome', 'view')), $doc.syntax) + '" title="' + $services.localization.render('CustomExtension.TopPanelMenu.Content.Home.Icon') +'"><span class="glyphicon glyphicon-home"> </span></a></li>')
66 +#set ($MyTabStr=${MyTabStr} + '<li class="menu-panel"><a href="' + $services.rendering.escape($escapetool.xml($xwiki.getURL('Home.About.WebHome', 'view')), $doc.syntax) + '" title="' + $services.localization.render('CustomExtension.TopPanelMenu.Content.Home.Icon') +'"><span class="glyphicon glyphicon-home"> </span></a></li>')
67 67  ## Columns
68 68  #set ($MyColumns='')
69 69  #set ($MyPanel='')
70 -#set($children = $sorttool.sort($MenuContentDoc.getChildren()))
70 +#set($children = $collectiontool.sort($MenuContentDoc.getChildren()))
71 71  #foreach ($child in $children)
72 72   #set($MyDoc=$xwiki.getDocument($child))
73 73   ## Page name and title
... ... @@ -87,7 +87,7 @@
87 87   ## Displayed all colums (children page of col-xx on the line)
88 88   ## List children page of Tab-01
89 89   #set($TabDocs=$MyDoc)
90 - #foreach ($child1 in $sorttool.sort($TabDocs.getChildren()))
90 + #foreach ($child1 in $collectiontool.sort($TabDocs.getChildren()))
91 91   #set($child1Ref = $services.model.resolveDocument($child1))
92 92   ##<!-- 1st and other columns -->
93 93   #if ($child1Ref.parent.name.startsWith("$colPrefx"))
... ... @@ -95,7 +95,7 @@
95 95   ## <!-- Groups vertical aligned -->
96 96   ## List bulleted lists: children pages of Col-xx
97 97   #set($ColDocs=$xwiki.getDocument($child1Ref))
98 - #foreach ($child2 in $sorttool.sort($ColDocs.getChildren()))
98 + #foreach ($child2 in $collectiontool.sort($ColDocs.getChildren()))
99 99   #set($child2Ref = $services.model.resolveDocument($child2))
100 100   #if ($child2Ref.parent.name.startsWith("$ListPrefx"))
101 101   #set($child2RefStr = $services.model.serialize($child2Ref, 'default'))
... ... @@ -120,7 +120,9 @@
120 120   #end
121 121   ## End of all columns (children pages of col-xx)
122 122   #set ($MyPanel=${MyPanel} + '</div>') ##Fin de "row top-menu-row" (OK)
123 + #if($hasAdmin)
123 123   #set ($MyPanel=${MyPanel} + '<a href="' + $services.rendering.escape($escapetool.xml($xwiki.getURL("$MenuSommaireGalDoc", 'view')), $doc.syntax) + '" class="GoToSommaire" type="button" title="' + $services.localization.render("CustomExtension.TopPanelMenu.Content.GoToSummary") +'">' + $services.localization.render("CustomExtension.TopPanelMenu.Content.Summary") + '</a>')
125 + #end
124 124   #set ($MyPanel=${MyPanel} + '</div>') ##End of "tab-pane fade" (OK)
125 125   #end
126 126  #end