Changes for page Main Categories

on 2025/03/08 22:56


on 2025/04/11 15:54
Summary
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. AdminAngriff1 +XWiki.TelegramBot - Content
-
... ... @@ -1,1 +1,28 @@ 1 1 {{dashboard/}} 2 + 3 +{{velocity}} 4 +#set($parentDoc = $xwiki.getDocument("Main.Categories.Race")) 5 +#set($children = $parentDoc.getChildren()) 6 + 7 +**Attachments for this page:** 8 +#set($attachments = $parentDoc.getAttachmentList()) 9 +#foreach($attachment in $attachments) 10 +- [$attachment.getFilename()]($parentDoc.getURL("download", $attachment.getFilename())) 11 +#end 12 + 13 +**Attachments from subpages:** 14 +#foreach($child in $children) 15 + #set($childDoc = $xwiki.getDocument($child)) 16 + #set($childAttachments = $childDoc.getAttachmentList()) 17 + 18 + #if($childAttachments.size() > 0) 19 + - **$childDoc.getTitle()** 20 + #foreach($attachment in $childAttachments) 21 + - [$attachment.getFilename()]($childDoc.getURL("download", $attachment.getFilename())) 22 + #end 23 + #end 24 +#end 25 +{{/velocity}} 26 + 27 + 28 +test