Changes for page MainMenu2
Change comment:
Imported from XAR
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,7 +6,13 @@ 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]] ... ... @@ -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 +No - Asynchronous rendering
-
... ... @@ -1,0 +1,1 @@ 1 +No