Wiki source code of 3D Printing
Version 60.1 by Josh McGee on 2025/11/19 11:02
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
22.1 | 1 | = **Slicing** = |
| |
18.1 | 2 | |
| |
19.1 | 3 | {{include page="Workflows/3D Printing/Slicing"/}} |
| |
18.1 | 4 | |
| |
19.1 | 5 | |
| |
23.1 | 6 | = **Preparing To Print** = |
| |
19.1 | 7 | |
| |
35.3 | 8 | {{include page="Workflows/3D Printing/Preparing To Print"/}} |
| |
19.1 | 9 | |
| |
24.1 | 10 | = **Preparing To Print** = |
| 11 | |||
| 12 | Follow the printing guide for your 3d printer: | ||
| 13 | |||
| |
35.1 | 14 | ??? ADD SOME KIND OF TOC SUBTREE HERE ??? |
| |
36.1 | 15 | |
| 16 | |||
| |
37.1 | 17 | {{velocity}} |
| |
55.1 | 18 | ## List all direct subpages of Areas > Upstairs > 3D Printers |
| 19 | #macro(list3DPrintersSubpages) | ||
| 20 | ## Current wiki name | ||
| 21 | #set($wikiName = $xcontext.database) | ||
| 22 | |||
| 23 | ## Build a document reference for Areas.Upstairs."3D Printers".WebHome | ||
| 24 | #set($parentRef = $services.model.createDocumentReference( | ||
| 25 | $wikiName, | ||
| |
60.1 | 26 | ['Areas', 'Upstairs', '3D Printing'], |
| |
57.1 | 27 | 'WebHome' |
| |
55.1 | 28 | )) |
| 29 | |||
| |
54.1 | 30 | ## Get the parent document |
| |
55.1 | 31 | #set($parentDoc = $xwiki.getDocument($parentRef)) |
| |
51.1 | 32 | |
| |
55.1 | 33 | ## Get its direct children |
| |
54.1 | 34 | #set($children = $parentDoc.getChildren()) |
| |
51.1 | 35 | |
| |
54.1 | 36 | #if(!$children || $children.isEmpty()) |
| |
55.1 | 37 | No subpages found under [[Areas.Upstairs.3D Printers]]. |
| |
52.1 | 38 | #else |
| |
54.1 | 39 | #foreach($childRef in $children) |
| |
55.1 | 40 | ## Resolve each child reference to a document |
| |
54.1 | 41 | #set($childDoc = $xwiki.getDocument($childRef)) |
| 42 | * [[$childDoc.getDisplayTitle()>>$childDoc]] | ||
| |
37.1 | 43 | #end |
| 44 | #end | ||
| 45 | #end | ||
| 46 | |||
| 47 | ## Call the macro | ||
| |
55.1 | 48 | #list3DPrintersSubpages() |
| |
37.1 | 49 | {{/velocity}} |
| 50 | |||
| |
38.1 | 51 | |
| |
57.1 | 52 |