Changes for page MainMenu2


<
From version < 2.1 >
edited by Andrey Shilin
on 2025/04/16 12:23
To version < 3.1 >
edited by Andrey Shilin
on 2025/04/18 16:10
>
Change comment: Imported from XAR

Summary

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)

Commonwealth of Nations

Languages