Hide last authors
David Brazda 17.1 1 **~{~{changedpages1/}}**
David Brazda 3.1 2
David Brazda 17.1 3 **for test just on this wiki**
4
David Brazda 8.1 5 {{changedpages1/}}
David Brazda 24.2 6
7
8 {{velocity}}
9 #set ($list = $services.query.xwql('where doc.hidden = 0 order by doc.date desc').execute())
David Brazda 25.2 10 Skript pro sitemap, nezobrazujeme stranky, ktere maji parenta hidden - a nebo tam dame primo xwiki parenta
David Brazda 24.2 11 #foreach($reference in $list)
12 #set ($document = $xwiki.getDocument($reference))
David Brazda 25.2 13 #set ($parentDoc = $xwiki.getDocument($document.parent))
David Brazda 25.3 14 #if (!$parentDoc.isHidden())
David Brazda 24.2 15 * $document
David Brazda 27.1 16 * $reference
David Brazda 25.2 17 #end
David Brazda 24.2 18 #end
19 {{/velocity}}