Zdrojový kód wiki Macro - changedpages1 - forTest
Version 27.1 by David Brazda on 23.02.2021 14:13
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | **~{~{changedpages1/}}** | ||
2 | |||
3 | **for test just on this wiki** | ||
4 | |||
5 | {{changedpages1/}} | ||
6 | |||
7 | |||
8 | {{velocity}} | ||
9 | #set ($list = $services.query.xwql('where doc.hidden = 0 order by doc.date desc').execute()) | ||
10 | Skript pro sitemap, nezobrazujeme stranky, ktere maji parenta hidden - a nebo tam dame primo xwiki parenta | ||
11 | #foreach($reference in $list) | ||
12 | #set ($document = $xwiki.getDocument($reference)) | ||
13 | #set ($parentDoc = $xwiki.getDocument($document.parent)) | ||
14 | #if (!$parentDoc.isHidden()) | ||
15 | * $document | ||
16 | * $reference | ||
17 | #end | ||
18 | #end | ||
19 | {{/velocity}} |