Changes for page 3D Printing

Last modified by Josh McGee on 2026/01/21 13:23

From version 53.1
edited by Josh McGee
on 2025/11/19 10:52
Change comment: There is no comment for this version
To version 55.1
edited by Josh McGee
on 2025/11/19 10:53
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,11 +20,10 @@
20 20   ## Current wiki name
21 21   #set($wikiName = $xcontext.database)
22 22  
23 - ## Build a document reference for Areas.Upstairs."3D Printers"
24 - ## (nested page, NOT WebHome of another space)
23 + ## Build a document reference for Areas.Upstairs."3D Printers".WebHome
25 25   #set($parentRef = $services.model.createDocumentReference(
26 26   $wikiName,
27 - ['Areas', 'Upstairs', '3D%20Printing'],
26 + ['Areas', 'Upstairs', '3D Printers'],
28 28   'WebHome'
29 29   ))
30 30  
... ... @@ -31,21 +31,16 @@
31 31   ## Get the parent document
32 32   #set($parentDoc = $xwiki.getDocument($parentRef))
33 33  
34 - ## Optional sanity check: ensure the parent exists
35 - #if(!$parentDoc.exists())
36 - Parent page not found: $parentRef
37 - #else
38 - ## Get its direct children
39 - #set($children = $parentDoc.getChildren())
33 + ## Get its direct children
34 + #set($children = $parentDoc.getChildren())
40 40  
41 - #if(!$children || $children.isEmpty())
42 - No subpages found under 3D Printers.
43 - #else
44 - #foreach($childRef in $children)
45 - ## Resolve each child reference to a document
46 - #set($childDoc = $xwiki.getDocument($childRef))
47 - * [[$childDoc.getDisplayTitle()>>$childDoc]]
48 - #end
36 + #if(!$children || $children.isEmpty())
37 + No subpages found under [[Areas.Upstairs.3D Printers]].
38 + #else
39 + #foreach($childRef in $children)
40 + ## Resolve each child reference to a document
41 + #set($childDoc = $xwiki.getDocument($childRef))
42 + * [[$childDoc.getDisplayTitle()>>$childDoc]]
49 49   #end
50 50   #end
51 51  #end
... ... @@ -55,4 +55,3 @@
55 55  {{/velocity}}
56 56  
57 57  
58 -