Исходный код вики Приказы
Версия 3.1 от Admin Admin на 2024/05/12 20:40
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{velocity}} | ||
| 2 | #set($pubRefs = $doc.getChildrenReferences()) | ||
| 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) | ||
| 9 | #set($pub = $xwiki.getDocument($pubRef)) | ||
| 10 | #set($title = $pub.getTitle()) | ||
| 11 | * [[$title>>$pubRef]] | ||
| 12 | #end | ||
| 13 | {{/velocity}} |