| | | |
| #### Parameters | | #### Parameters |
| | | |
| - id (required): Id of the attachment | | - id (required): Id of the attachment |
| - img tag parameters: width, height, alt, align wh | | - img tag parameters: width, height, alt, align wh |
| ich are taken 1:1 as HTML parameters. | | ich are taken 1:1 as HTML parameters. |
t | | t |
|
| | |
|
| | | ### AttachmentList Macro
|
| | |
|
| | | Creates a list of all attachments of the current w |
| | | iki snip.
|
| | |
|
| | | Example Usage:
|
| | |
|
| | | {attachmentlist}
|
| | |
|
| | | #### Parameters
|
| | |
|
| | | - template: The template to use for rendering - De |
| | | fault: sphene/sphwiki/macros/_attachment_list.html |
| | |
|
| | |
|
| | | #### Template Variables
|
| | |
|
| | | attachmentlist uses the generic view function obje |
| | | ct_list but without pagination.
|
| | |
|
| | | - attachment_list: Contains a list of all attachme |
| | | nts.
|
| | |
|
| | |
|
| | | ### Attachment Macro
|
| | |
|
| | | Displays a single attachment which is referenced b |
| | | y it's id.
|
| | |
|
| | | Example Usage:
|
| | |
|
| | | {attachment id=5}
|
| | |
|
| | | #### Parameters
|
| | |
|
| | | - id (required): The id of the attachment to link |
| | | to.
|
| | | - label: The label of the link - Default: the file |
| | | name of the attachment
|
| | | - template: The template to use for rendering - De |
| | | fault: sphene/sphwiki/macros/_attachment.html
|
| | |
|
| | | #### Template Variables
|
| | |
|
| | | - attachment: The attachment object
|
| | | - params: all parameters passed to the macro. If y |
| | | ou create your own template you can for example us |
| | | e {{ params.label }} to retrieve the value of the |
| | | 'label' parameter in: {attachment id=5 label="Test |
| | | ing"}
|
| | |
|