Изменения документа MainMenu


От версии < 3.1 >
отредактировано Михаил Бич
на 2025/06/09 18:12
К версии 1.1 >
отредактировано Andrey Shilin
на 2024/08/15 11:39
>
Изменить комментарий: Imported from XAR

Комментарий

Подробности

Свойства страницы
Автор документа
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.mishael
1 +xwiki:XWiki.shilin
Содержимое
... ... @@ -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

Содружество стран

Языки