Изменения документа MainMenu2
отредактировано Andrey Shilin
на 2024/12/24 11:22
на 2024/12/24 11:22
отредактировано Andrey Shilin
на 2025/07/10 15:52
на 2025/07/10 15:52
Изменить комментарий:
Imported from XAR
Комментарий
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -6,11 +6,17 @@ 6 6 #set ($domains= $configurationDocObject.getProperty("domains").value) 7 7 #set ($levelUp = $configurationDocObject.getProperty("levelUp").value) 8 8 #set ($levelsDown = $configurationDocObject.getProperty("levelsDown").value) 9 -* [[~[~[image:icon:house~]~]>>doc:nationalaccounts:Main.WebHome]] 9 +#foreach ($domain in $domains) 10 + #set ($docRef = $services.model.createDocumentReference($domain, "Main", "WebHome")) 11 + #if($xwiki.exists($docRef) && $xwiki.getDocument($docRef)) 12 + * [[~[~[image:icon:house~]~]>>$docRef]] 13 + #break 14 + #end 15 +#end 10 10 * 11 11 * [[$services.localization.render('suz.menu.О_проекте')>>doc:xwiki:О проекте.WebHome||target="_blank"]] 12 12 ##* [[~[~[image:icon:house~]~] $services.localization.render('suz.menu.Главная')>>doc:Main.WebHome]] 13 -* 19 +* 14 14 ##* $services.localization.render('suz.menu.Домены'): 15 15 ###foreach ($domain in $domains) 16 16 ##** [[$services.localization.render('suz.menu.' + $services.wiki.getById($domain).getPrettyName().replace(" ", "_"))>>doc:$domain:Main.WebHome]] ... ... @@ -18,7 +18,7 @@ 18 18 #if($xwiki.exists('xwiki:Для экспертов.WebHome')) 19 19 #if($xwiki.getDocument('xwiki:Для экспертов.WebHome')) 20 20 * [[$services.localization.render('suz.menu.Для_экспертов')>>doc:xwiki:Для экспертов.WebHome||target="_blank"]] 21 -* 27 +* 22 22 #end 23 23 #end 24 24 #set ($paths = $stringtool.split($stringtool.split($doc, ":")[1], ".")) ... ... @@ -31,7 +31,7 @@ 31 31 #set ($currentLevel = $levelUp) 32 32 #set($pageLink = "Main.WebHome") 33 33 #end 34 -#set($currentDomain = "* [[**"+$services.localization.render('suz.menu. ' + $services.wiki.currentWikiDescriptor.prettyName.replace(" ", "_"))+"/ "+ $currentLevel+">>doc:"+$pageLink+"]]**")40 +#set($currentDomain = "* [[**"+$services.localization.render('suz.menu.О_домене')+">>doc:"+$pageLink+"]]**") 35 35 $currentDomain 36 36 * 37 37 #foreach ($section in $sections) ... ... @@ -56,5 +56,7 @@ 56 56 #end 57 57 #end 58 58 #end 65 +#if ($services.user.group.getGroups($xcontext.userReference, $NULL, false).contains($services.model.resolveDocument('xwiki:XWiki.NewFeature'))) 66 +#end 59 59 ## * 60 60 {{/velocity}}
- XWiki.UIExtensionClass[0]
-
- Cached
-
... ... @@ -1,0 +1,1 @@ 1 +Нет - Asynchronous rendering
-
... ... @@ -1,0 +1,1 @@ 1 +Нет