Исходный код вики Приказы
Версия 3.1 от Admin Admin на 2024/05/12 20:40
Скрыть последних авторов
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | {{velocity}} |
| 2 | #set($pubRefs = $doc.getChildrenReferences()) | ||
| |
3.1 | 3 | #set($sortedRefs = $pubRefs.sort(false, false) { $doc1, $doc2 -> |
| 4 | #set($date1 = $datetool.toDate("dd.MM.yyyy", $xwiki.getDocument($doc1).getTitle().substring(9, 19))) | ||
| 5 | #set($date2 = $datetool.toDate("dd.MM.yyyy", $xwiki.getDocument($doc2).getTitle().substring(9, 19))) | ||
| 6 | $date2.compareTo($date1) | ||
| 7 | }) | ||
| 8 | #foreach($pubRef in $sortedRefs) | ||
| |
2.1 | 9 | #set($pub = $xwiki.getDocument($pubRef)) |
| 10 | #set($title = $pub.getTitle()) | ||
| |
2.2 | 11 | * [[$title>>$pubRef]] |
| |
2.1 | 12 | #end |
| 13 | {{/velocity}} | ||
| |
3.1 | 14 |