Wiki source code of Link to an Attached File or Image
Last modified by Eleni Cojocariu on 2026/10/02 09:12
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | The Wiki editor addresses an [[attachment>>doc:documentation.xs.user.attachments.WebHome]] by its file name, behind a scheme that says whether to link it or to display it: | ||
| 2 | |||
| 3 | 1. [[Edit the Page>>doc:documentation.xs.user.base.page.edit.edit-wiki-editor.WebHome]] the link belongs in, with the Wiki editor. | ||
| 4 | 1. Write the link, giving the name of the file as its target, prefixed by the attachment scheme:((( | ||
| 5 | {{code language="none"}} | ||
| 6 | [[the quarterly report>>attach:quarterly-report.pdf]] | ||
| 7 | {{/code}} | ||
| 8 | |||
| 9 | To display an image instead of linking it, write the image scheme followed by the file name: | ||
| 10 | |||
| 11 | {{code language="none"}} | ||
| 12 | image:revenue-chart.png | ||
| 13 | {{/code}} | ||
| 14 | |||
| 15 | {{image reference="link-attachment-editor.png" size="extra" alt="The Wiki editor with the attachment link and the image typed in the content of the Page"/}} | ||
| 16 | ))) | ||
| 17 | 1. Click "Save & View". The link and the image are rendered in the content of the Page.((( | ||
| 18 | {{image reference="link-attachment-result.png" size="extra" alt="A Page displaying a link to an attached PDF followed by an attached image"/}} | ||
| 19 | ))) |