Changes for page Menu content

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

From version 2.1
edited by Ricardo Julio Rodríguez Fernández
on 2026/06/12 19:09
Change comment: There is no comment for this version
To version 1.7
edited by Ricardo Julio Rodríguez Fernández
on 2024/08/16 22:58
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('Home.About.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('Main.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 = $collectiontool.sort($MenuContentDoc.getChildren()))
70 +#set($children = $sorttool.sort($MenuContentDoc.getChildren()))
71 71  #foreach ($child in $children)
72 72   #set($MyDoc=$xwiki.getDocument($child))
73 73   ## Page name and title
... ... @@ -120,9 +120,7 @@
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)
124 124   #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
126 126   #set ($MyPanel=${MyPanel} + '</div>') ##End of "tab-pane fade" (OK)
127 127   #end
128 128  #end
... ... @@ -151,7 +151,7 @@
151 151   $MyTabStr
152 152   ## Menu displayed
153 153   <div id="top-menu-content" class="tab-content">
154 - $MyPanel
152 +## $MyPanel
155 155   </div> ## End of "top-menu-content"
156 156   </div> ## End of "menu-container"
157 157  #end