Исходный код вики Домены
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | ##Состав меню из настроек | ||
| 3 | #set ($configurationDoc = $xwiki.getDocument("SUZ.Code.SUZConfiguration")) ##Конфигурационный документ | ||
| 4 | #set ($configurationDocObject = $configurationDoc.getObject("SUZ.Code.SUZConfigurationClass", false)) | ||
| 5 | #set ($domains= $configurationDocObject.getProperty("domains").value) | ||
| 6 | #foreach ($domain in $domains) | ||
| 7 | #set ($docRef = $services.model.createDocumentReference($domain, "Main", "WebHome")) | ||
| 8 | #if ($domain == $services.wiki.getCurrentWikiId().toString())##Текущий раздел надо выделить жирным | ||
| 9 | #set ($outline = "* **[["+$services.localization.render('suz.menu.' + $services.wiki.currentWikiDescriptor.prettyName.replace(" ", "_"))+">>doc:Main.WebHome"+"]]**") | ||
| 10 | #else | ||
| 11 | #set ($outline = "* [["+$services.localization.render('suz.menu.' + $services.wiki.getById($domain).getPrettyName().replace(" ", "_"))+">>doc:"+$domain+":Main.WebHome"+"]]") | ||
| 12 | #end | ||
| 13 | #if($xwiki.exists($docRef) && $xwiki.getDocument($docRef)) | ||
| 14 | $outline | ||
| 15 | #end | ||
| 16 | #end | ||
| 17 | {{/velocity}} |