Исходный код вики Приказы
Версия 6.4 от Admin Admin на 2024/05/13 01:23
Скрыть последних авторов
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | {{velocity}} |
| 2 | #set($pubRefs = $doc.getChildrenReferences()) | ||
| |
6.4 | 3 | #set($entries = []) |
| |
4.1 | 4 | #foreach($pubRef in $pubRefs) |
| |
2.1 | 5 | #set($pub = $xwiki.getDocument($pubRef)) |
| 6 | #set($title = $pub.getTitle()) | ||
| |
6.4 | 7 | #set($dateStr = $title.substring(10, 20)) |
| |
4.1 | 8 | #set($date = $datetool.toDate("dd.MM.yyyy", $dateStr)) |
| |
6.4 | 9 | #set($map = {"date": $date, "ref": $pubRef}) |
| 10 | #set($discard = $entries.add($map)) | ||
| |
4.1 | 11 | #end |
| |
6.4 | 12 | #foreach($entry in $collectiontool.sort($entries, "date:desc")) |
| 13 | #set($pubRef = $entry.ref) | ||
| |
4.1 | 14 | #set($pub = $xwiki.getDocument($pubRef)) |
| 15 | #set($title = $pub.getTitle()) | ||
| |
2.2 | 16 | * [[$title>>$pubRef]] |
| |
2.1 | 17 | #end |
| 18 | {{/velocity}} |