Wiki source code of Attachments

Version 5.1 by Vincent Massol on 2007/12/05

Hide last authors
Vincent Massol 1.1 1 1 Attachments
2
Vincent Massol 1.33 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.
Vincent Massol 1.1 4
Vincent Massol 1.26 5 #toc("" "" "")
Vincent Massol 1.1 6
Vincent Massol 1.26 7 1.1 Attaching a file
Vincent Massol 1.1 8
Vincent Massol 5.1 9 There are 3 possibilites to attach a file using the default [Albatross skin>Features.Skins]:
Vincent Massol 1.26 10
Vincent Massol 1.29 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
Vincent Massol 1.26 15 {image:attachment-menu.png}
16
Vincent Massol 1.29 17 You'll see a list of the current attachments and a possibility to upload more files:
18
Vincent Massol 1.26 19 {image:attachment-bottom.png}
20
Vincent Massol 1.29 21 1.1.1 Using the attachment panel at the bottom of the page
Vincent Massol 1.26 22
Vincent Massol 1.29 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
Vincent Massol 1.33 25 {image:attachment-bottom.png}
Vincent Massol 1.29 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
Vincent Massol 1.34 35 1.1 Linking to an attached file/image
Vincent Massol 1.29 36
Vincent Massol 1.31 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.
Vincent Massol 1.33 40
Vincent Massol 1.34 41 1.1 Linking to an external file/image
Vincent Massol 1.33 42
Vincent Massol 1.35 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:
Vincent Massol 1.34 44
45 {code:xml}
Vincent Massol 1.37 46 [http://some_remote_server/path/to/file>text to display]
Vincent Massol 1.34 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}
54

Get Connected