Changes for page MainMenu


From version < 2.1 >
edited by Andrey Shilin
on 2024/12/24 11:22
To version 1.1 >
edited by Andrey Shilin
on 2024/08/15 11:39
>
Change comment: Imported from XAR

Summary

Details

Page properties
Content
... ... @@ -14,12 +14,10 @@
14 14  *
15 15  #foreach ($section in $sections)
16 16  #if ($xwiki.exists($section+'.WebHome'))##Показывать ссылку только если существует страница
17 -#if($xwiki.getDocument($section+'.WebHome'))
18 18  #set($link = 'doc:' + $section + '.WebHome')
19 19  * [[$services.localization.render('suz.menu.' + $section)>>$link]]
20 20  #end
21 21  #end
22 -#end
23 23  *
24 24  * [[$services.localization.render('suz.menu.О_проекте')>>doc:xwiki:О проекте.WebHome||target="_blank"]]
25 25  {{/velocity}}
XWiki.UIExtensionClass[0]
Executed Content
... ... @@ -1,0 +1,5 @@
1 +{{velocity}}
2 +#if ($xwiki.hasAccessLevel('view', $xcontext.user, $uix.doc.documentReference))
3 +{{menu type="horizontal fixedWidth" id="menu-horizontal-Menu-MainMenu-WebHome"}}{{include reference="$uix.doc.documentReference" /}}{{/menu}}
4 +#end
5 +{{/velocity}}
Extension Point ID
... ... @@ -1,0 +1,1 @@
1 +org.xwiki.platform.template.header.after
Extension ID
... ... @@ -1,1 +1,1 @@
1 -SUZ.Menu.MainMenu.WebHome
1 +Menu.MainMenu.WebHome

Commonwealth of Nations

Languages