Wiki source code of Attachments
Version 2.1 by Vincent Massol on 2007/12/05
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | 1 Attachments | ||
2 | |||
3 | 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. | ||
4 | |||
5 | #toc("" "" "") | ||
6 | |||
7 | 1.1 Attaching a file | ||
8 | |||
9 | There are 3 possibilites to attach a file using the default [Albatross skin>UserGuide.Skins]: | ||
10 | |||
11 | 1.1.1 Using the top level menu | ||
12 | |||
13 | View the page on which you wish to attach a file and then select the "Show > Attachment" option in the top level menu: | ||
14 | |||
15 | {image:attachment-menu.png} | ||
16 | |||
17 | You'll see a list of the current attachments and a possibility to upload more files: | ||
18 | |||
19 | {image:attachment-bottom.png} | ||
20 | |||
21 | 1.1.1 Using the attachment panel at the bottom of the page | ||
22 | |||
23 | View the page on which you wish to attach a file and then click on "Attachments" at the bottom of the page. That'll open the attachment panel: | ||
24 | |||
25 | {image:attachment-bottom.png} | ||
26 | |||
27 | 1.1.1 Using the WYSIWYG editor | ||
28 | |||
29 | Edit the page on which you wish to attach a file using the WYSIWYG editor and click on the "Insert an Attachment Link" icon in the toolbar. You can also click on "Insert/edit image" and you'll get a similar popup windows as shown below: | ||
30 | |||
31 | {image:attachment-wysiwyg-file.png} | ||
32 | |||
33 | Note that you can create a link to the attachment/image directly in that same popup window. | ||
34 | |||
35 | 1.1 Linking to an attached file/image | ||
36 | |||
37 | If you're using the wiki editor, you can use the [Image macro>Code.ImageMacro] to display an image inline. If you simply wish to link to an attachment, use the [Attach macro>Code.AttachMacro]. | ||
38 | |||
39 | If you're using the WYSIWYG editor, then use the "Insert an Attachment link" or "Insert/edit image" buttons as shown above. | ||
40 | |||
41 | 1.1 Linking to an external file/image | ||
42 | |||
43 | 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: | ||
44 | |||
45 | {code:xml} | ||
46 | [http://some_remote_server/path/to/file>text to display] | ||
47 | {code} | ||
48 | |||
49 | For displaying an image located on a remote server, use the following HTML code snippet: | ||
50 | |||
51 | {code:xml} | ||
52 | <img src="http://some_remote_server/path/to/image"/> | ||
53 | {code} |