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


От версии 1.1 >
отредактировано Andrey Shilin
на 2024/08/15 11:39
К версии < 4.1
отредактировано Andrey Shilin
на 2025/07/10 15:52
Изменить комментарий: Imported from XAR

Комментарий

Подробности

Свойства страницы
Содержимое
... ... @@ -14,10 +14,12 @@
14 14  *
15 15  #foreach ($section in $sections)
16 16  #if ($xwiki.exists($section+'.WebHome'))##Показывать ссылку только если существует страница
17 +#if($xwiki.getDocument($section+'.WebHome'))
17 17  #set($link = 'doc:' + $section + '.WebHome')
18 18  * [[$services.localization.render('suz.menu.' + $section)>>$link]]
19 19  #end
20 20  #end
22 +#end
21 21  *
22 22  * [[$services.localization.render('suz.menu.О_проекте')>>doc:xwiki:О проекте.WebHome||target="_blank"]]
23 23  {{/velocity}}
XWiki.UIExtensionClass[0]
Executed Content
... ... @@ -1,5 +1,0 @@
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,1 +1,0 @@
1 -org.xwiki.platform.template.header.after
Extension ID
... ... @@ -1,1 +1,1 @@
1 -Menu.MainMenu.WebHome
1 +SUZ.Menu.MainMenu.WebHome

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

Языки