Wiki-Quellcode von Anleitungen

Version 7.1 von Mike Schneider am 2025/09/16 13:11

Zeige letzte Bearbeiter
1 {{code language="velocity"}}
2 {{velocity}}
3 #set($rootdoc=$xwiki.getDocument("HOL.WebHome"))
4 #foreach($subpage in $services.query.xwql("where doc.space like '${rootdoc.space}.%' order by doc.space").execute())
5 #set($thispage=$xwiki.getDocument($subpage))
6 #foreach($attachment in $thispage.getAttachmentList())
7 #set($attFileName=$attachment.getFilename())
8 #if($attFileName.endsWith(".pdf"))
9 * $thispage.space [[$attFileName>>attach:$attFileName]]
10 #end
11 #end
12 #end
13 {{/velocity}}
14 {{/code}}