Wiki source code of Attachments
Version 28.2 by Manuel Smeria on 2012/11/30
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
14.2 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
2 | {{toc/}} | ||
3 | {{/box}} | ||
![]() |
7.1 | 4 | |
![]() |
1.33 | 5 | 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. |
![]() |
1.1 | 6 | |
![]() |
11.3 | 7 | = Attaching a file = |
![]() |
1.1 | 8 | |
![]() |
8.1 | 9 | There are 3 possibilities to attach a file: |
![]() |
1.26 | 10 | |
![]() |
11.3 | 11 | == Using the top level menu == |
![]() |
1.29 | 12 | |
![]() |
14.2 | 13 | Starting with XWiki 2.6, you can add an attachment using the new Add menu: |
![]() |
26.3 | 14 | |
![]() |
25.3 | 15 | {{image reference="AddAttachmentsColibri.png"/}} |
![]() |
14.2 | 16 | |
![]() |
1.29 | 17 | You'll see a list of the current attachments and a possibility to upload more files: |
18 | |||
![]() |
27.2 | 19 | {{image reference="view-attachments.png"/}} |
![]() |
1.26 | 20 | |
![]() |
11.3 | 21 | == Using the attachment panel at the bottom of the page == |
![]() |
1.26 | 22 | |
![]() |
8.1 | 23 | View the page on which you wish to attach a file and then click on "Attachments" at the bottom of the page. |
![]() |
1.29 | 24 | |
![]() |
26.2 | 25 | {{image reference="attachments.png"/}} |
![]() |
8.1 | 26 | |
![]() |
11.3 | 27 | == Using the WYSIWYG editor == |
![]() |
1.29 | 28 | |
![]() |
28.2 | 29 | 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 > Attached Image" and you'll get a similar popup window as shown below: |
![]() |
1.29 | 30 | |
![]() |
25.3 | 31 | {{image reference="AttachmentWysiwygToucan.PNG"/}} |
![]() |
1.29 | 32 | |
33 | Note that you can create a link to the attachment/image directly in that same popup window. | ||
34 | |||
![]() |
11.3 | 35 | = Linking to an attached file/image = |
![]() |
1.29 | 36 | |
![]() |
11.5 | 37 | If you're using the Wiki editor, you can use the [[Wiki Syntax>>platform:Main.XWikiSyntax]] to display an image inline or link to an attachment. |
![]() |
1.31 | 38 | |
![]() |
28.2 | 39 | If you're using the WYSIWYG editor, then use the "Link > Attached File..." or "Image > Attached Image" buttons as shown above. |
![]() |
1.33 | 40 | |
![]() |
11.3 | 41 | = Linking to an external file/image = |
![]() |
1.33 | 42 | |
![]() |
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: |
![]() |
1.34 | 44 | |
![]() |
9.1 | 45 | * **XWiki Syntax 1.0**: {{code language="none"}}[http://some_remote_server/path/to/file>text to display]{{/code}} |
46 | * **XWiki Syntax 2.0**: {{code language="none"}}[[text to display>>http://some_remote_server/path/to/file]]{{/code}} | ||
![]() |
1.34 | 47 | |
48 | For displaying an image located on a remote server, use the following HTML code snippet: | ||
49 | |||
![]() |
9.1 | 50 | * **XWiki Syntax 1.0**: {{code language="xml"}}<img src="http://some_remote_server/path/to/image"/>{{/code}} |
51 | * **XWiki Syntax 2.0**: {{code language="none"}}image:http://some_remote_server/path/to/image{{/code}} | ||
52 | |||
53 | See the [[XWiki Syntax Guide>>platform:Main.XWikiSyntax]] for more details. | ||
![]() |
17.1 | 54 | |
![]() |
18.1 | 55 | = Size Limit = |
![]() |
19.2 | 56 | |
![]() |
28.2 | 57 | The maximum size of an attachment is limited by the administrator. By default it is set at about 32 megabytes. |
![]() |
18.1 | 58 | |
![]() |
19.1 | 59 | = Learn More = |
![]() |
19.2 | 60 | |
61 | For more information about how XWiki attachments work and how to configure/tune the attachment store, you can examine the [[administrator's guide to attachments>>platform:AdminGuide.Attachments]]. |