0 Votes

Changes for page Humor and Memes

Last modified by Ryan C on 2025/03/15 03:07

From version 39.1
edited by Ryan C
on 2025/03/14 23:15
Change comment: There is no comment for this version
To version 36.1
edited by Ryan C
on 2025/03/13 01:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,8 +4,25 @@
4 4  
5 5  ## Images
6 6  
7 -{{gallery/}}
8 -
9 9  # Humor and Memes Gallery
10 10  
9 +{{velocity}}
10 +#set($parentDoc = $xwiki.getDocument("Main.Categories.Race"))
11 +#set($children = $parentDoc.getChildren())
12 +
13 +**Checking Attachments for Subpages:**
14 +#foreach($child in $children)
15 + #set($childDoc = $xwiki.getDocument($child))
16 + **Subpage: $childDoc.getTitle()** <br/>
17 + #set($childAttachments = $childDoc.getAttachmentList())
18 +
19 + #if($childAttachments.size() > 0)
20 + Found **$childAttachments.size()** attachments! ✅
21 + #else
22 + ❌ No attachments found.
23 + #end
24 +#end
25 +{{/velocity}}
26 +
27 +
11 11  <div style="display: flex; flex-wrap: wrap; gap: 10px;">