0 Votes

Changes for page Sandbox

Last modified by Ryan C on 2025/03/13 01:36

From version 3.1
edited by Ryan C
on 2025/03/09 16:18
Change comment: There is no comment for this version
To version 21.1
edited by Ryan C
on 2025/03/13 01:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,35 +1,34 @@
1 -~{~{velocity}}
2 -$services.component.getInstance('org.xwiki.environment.Environment').getPermanentDirectory().getCanonicalPath()
3 -~{~{/velocity}}
1 +The sandbox is a part of your wiki that you can freely modify. It's meant to let you practice editing. You will discover how page editing works and create new pages. Simply click on **Edit** to get started!
2 +{{velocity}}
3 +#set($currentDoc = $doc)
4 +#set($attachments = $currentDoc.getAttachmentList())
4 4  
6 +**Attachments for This Page:**
7 +#foreach($attachment in $attachments)
8 +- #if($attachment.getMimeType().startsWith("image/"))
9 + ![$attachment.getFilename()]($currentDoc.getURL("download", $attachment.getFilename()))
10 + #else
11 + [$attachment.getFilename()]($currentDoc.getURL("download", $attachment.getFilename()))
12 + #end
13 +#end
5 5  
15 +**Attachments from Subpages:**
16 +#set($children = $currentDoc.getChildren())
17 +#foreach($child in $children)
18 + #set($childDoc = $xwiki.getDocument($child))
19 + #set($childAttachments = $childDoc.getAttachmentList())
6 6  
7 -~(% class="col-xs-12 col-sm-4" %)
8 -~(~(~(
21 + **$childDoc.getTitle()**:
22 + #foreach($attachment in $childAttachments)
23 + - #if($attachment.getMimeType().startsWith("image/"))
24 + ![$attachment.getFilename()]($childDoc.getURL("download", $attachment.getFilename()))
25 + #else
26 + [$attachment.getFilename()]($childDoc.getURL("download", $attachment.getFilename()))
27 + #end
28 + #end
29 +#end
30 +{{/velocity}}
9 9  
10 -~(% class="box" %)
11 -~(~(~( 
12 -~= Falabella =
13 -~[~[image~:Templates.Encyclopedia.Template.WebHome@image.jpg]]
14 -
15 -~|=Morphology|Miniature horse
16 -~|=Region|~[~[Argentina>>Main.WebHome]]
17 -~|=Price|1200 €
18 -~|=Image|~[~[Credits>>https:~/~/commons.wikimedia.org/wiki/File:FalabellaFestivo.jpg]]
19 -~)~)~)
20 -
21 -~(% class="box" %)
22 -~(~(~(
23 -~*~*Contents~*~*
24 -~{~{toc/}}
25 -~)~)~)
26 -~)~)~)
27 -
28 -
29 -
30 -
31 -The sandbox is a part of your wiki that you can freely modify. It's meant to let you practice editing. You will discover how page editing works and create new pages. Simply click on **Edit** to get started!
32 -
33 33  {{info}}
34 34  Don't worry about overwriting or losing stuff when editing the page, you can always roll back to the first version of the page from the "History" tab at the bottom of the page.
35 35  {{/info}}
... ... @@ -134,7 +134,7 @@
134 134  
135 135  You can insert images in your wiki pages:
136 136  
137 -[[image:XWikiLogo.png]]
136 +image:XWikiLogo.png
138 138  
139 139  == Macros ==
140 140