Attachments

Version 7.1 by Silvia Macovei on 2009/10/07
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Documentation.UserGuide.Features.Attachments]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Attachments

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 default Albatross skin:

Using the top level menu

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

attachment-menu.png

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

attachment-bottom.png

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. That'll open the attachment panel:

attachment-bottom.png

Using the WYSIWYG editor

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:

attachment-wysiwyg-file.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.

If you're using the WYSIWYG editor, then use the "Insert an Attachment link" or "Insert/edit 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:

[http://some_remote_server/path/to/file>text to display]

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

<img src="http://some_remote_server/path/to/image"/>
Tags:
   

Get Connected