... |
... |
@@ -1,5 +1,28 @@ |
1 |
|
-Pro White memes |
|
1 |
+# Humor landing page |
2 |
2 |
|
3 |
|
-{{attachmentGalleryPicker/}} |
|
3 |
+Upload Pro White memes here. |
4 |
4 |
|
|
5 |
+## Images |
|
6 |
+ |
|
7 |
+# Humor and Memes Gallery |
|
8 |
+ |
|
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}} |
5 |
5 |
|
|
27 |
+ |
|
28 |
+<div style="display: flex; flex-wrap: wrap; gap: 10px;"> |