Wiki source code of Attachments

Version 8.1 by Silvia Macovei on 2009/10/19

Show last authors
1 (% class="floatinginfobox" %)
2 (((**Contents**
3
4 {{toc start=2 depth=6 numbered=false scope=page /}})))
5
6 = Attachments =
7
8 A page can contain attachments which can then later be referenced from within a page. For example this is very useful for attaching images and displaying them in the page's content.
9
10 == Attaching a file ==
11
12 There are 3 possibilities to attach a file:
13
14 === Using the top level menu ===
15
16 View the page on which you wish to attach a file and then select the "Show > Attachments" option in the top level menu:
17
18 image:AttachmentMenuToucan.PNG
19 //Screenshot of the Toucan Skin//
20
21 You'll see a list of the current attachments and a possibility to upload more files:
22
23 image:AttachmentBottomToucan.PNG
24 //Screenshot of the Toucan Skin//
25
26 {{info}} For the [[Colibri skin>>http://code.xwiki.org/xwiki/bin/view/Skins/ColibriSkin]] there is no "Show > Attachments" option in the top level menu. {{/info}}
27
28 === Using the attachment panel at the bottom of the page ===
29
30 View the page on which you wish to attach a file and then click on "Attachments" at the bottom of the page.
31
32 image:AttachmentBottomToucan.PNG
33 //Screenshot of the Toucan Skin//
34
35 image:AttachmentBottomColibri.PNG
36 //Screenshot of the Colibri Skin//
37
38 === Using the WYSIWYG editor ===
39
40 Edit the page on which you wish to attach a file using the WYSIWYG editor and click on "Link > Attached file..." in the toolbar. You can also click on "Image > Insert image" and you'll get a similar popup window as shown below:
41
42 image:AttachmentWysiwygToucan.PNG
43
44 Note that you can create a link to the attachment/image directly in that same popup window.
45
46 == Linking to an attached file/image ==
47
48 If you're using the Wiki editor, you can use the [[Image macro>>code:Macros.ImageMacro]] to display an image inline. If you simply wish to link to an attachment, use the [[Attach macro>>code:Macros.AttachMacro]].
49
50 {{info}} In syntax 2.0 you don't need the {image} and {attach} macros. {{/info}}
51
52 If you're using the WYSIWYG editor, then use the "Link > Attached file..." or "Image > Insert image" buttons as shown above.
53
54 == Linking to an external file/image ==
55
56 If your file is on a remote server and you wish to link to it from your wiki, simply use the URL of the link as the content of your wiki link. For example, using the wiki editor you'd write:
57
58 {{code language="xml"}}[http://some_remote_server/path/to/file>text to display]{{/code}}
59
60 For displaying an image located on a remote server, use the following HTML code snippet:
61
62 {{code language="xml"}}<img src="http://some_remote_server/path/to/image"/>{{/code}}

Get Connected