Attachments

Version 11.3 by Silvia Macovei on 2010/02/24

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. 

Attaching a file

There are 3 possibilities to attach a file:

Using the top level menu

View the page on which you wish to attach a file and then select the "Show > Attachments" option in the top level menu:

AttachmentMenuToucan.PNG
Screenshot of the Toucan Skin

You'll see a list of the current attachments and a possibility to upload more files:

AttachmentBottomToucan.PNG
Screenshot of the Toucan Skin

 For the Colibri skin there is no "Show > Attachments" option in the top level menu. 

Using the attachment panel at the bottom of the page

View the page on which you wish to attach a file and then click on "Attachments" at the bottom of the page.

AttachmentBottomToucan.PNG
Screenshot of the Toucan Skin

AttachmentBottomColibri.PNG
Screenshot of the Colibri Skin

Using the WYSIWYG editor

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:

AttachmentWysiwygToucan.PNG

Note that you can create a link to the attachment/image directly in that same popup window.

Linking to an attached file/image

If you're using the Wiki editor, you can use the Image macro to display an image inline. If you simply wish to link to an attachment, use the Attach macro.

 In syntax 2.0 you don't need the {image} and {attach} macros. 

If you're using the WYSIWYG editor, then use the "Link > Attached file..." or "Image > Insert image" buttons as shown above.

Linking to an external file/image

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:

  • XWiki Syntax 1.0: [http://some_remote_server/path/to/file>text to display]
  • XWiki Syntax 2.0: [[text to display>>http://some_remote_server/path/to/file]]

For displaying an image located on a remote server, use the following HTML code snippet:

  • XWiki Syntax 1.0: <img src="http://some_remote_server/path/to/image"/>
  • XWiki Syntax 2.0: image:http://some_remote_server/path/to/image

See the XWiki Syntax Guide for more details.

Tags:
   

Get Connected