Изменения документа 02. Регулирующие документы
Редактировал(а) Admin Admin 2024/07/18 11:44
От версии 5.1
отредактировано Admin Admin
на 2024/07/18 11:19
на 2024/07/18 11:19
Изменить комментарий:
К данной версии нет комментариев
К версии 2.9
отредактировано Admin Admin
на 2024/02/27 21:35
на 2024/02/27 21:35
Изменить комментарий:
Update document after refactoring.
Сводка
-
Свойства страницы (2 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Теги
-
... ... @@ -1,0 +1,1 @@ 1 +НПА - Содержимое
-
... ... @@ -1,11 +1,29 @@ 1 1 {{velocity}} 2 +#set($sortLetter = 'A') 3 +#set($isFirstPub = true) 2 2 #set($pubRefs = $doc.getChildrenReferences()) 5 +#set($sortedMap = $collectiontool.getSortedMap()) 3 3 #foreach($pubRef in $pubRefs) 4 - #if($xwiki.hasAccessLevel('view', $xcontext.userReference, $pubRef)) 5 - #set($pub = $xwiki.getDocument($pubRef)) 6 - #set($title = $pub.getTitle()) 7 - * [[$title>>$pubRef]] 8 - 9 - #end 7 + #set($pub = $xwiki.getDocument($pubRef)) 8 + #set($title = $pub.getTitle()) 9 + #set($foo = $sortedMap.put($title, $pubRef)) 10 10 #end 11 +#foreach($key in $sortedMap.keySet()) 12 + #set($title = $key) 13 + #set($ref = $sortedMap.get($key)) 14 + #if(!$title.length().equals(0)) 15 + #if($title.charAt(0).equals($sortLetter)) 16 + #if($isFirstPub) 17 + * $sortLetter 18 + #set($isFirstPub = false) 19 + #end 20 + ** [[$title>>$ref]] 21 + #else 22 + #set($sortLetter = $title.charAt(0)) 23 + #set($isFirstPub = false) 24 + * $sortLetter 25 + ** [[$title>>$ref]] 26 + #end 27 + #end 28 +#end 11 11 {{/velocity}}