Page History
Scrollbar | ||
---|---|---|
|
...
Attachments and Scaffolding Macros
...
Table of Contents | ||
---|---|---|
|
Attachment
...
Data macro
The attachment - data macro allows the user to select or upload an attachment. If there are no attachments of the type specified, the Browse button allows attaching you can attach any file from the local drive. If there are attachments of the type specified, the macro offers the list of those attachments.
The general form is:
Code Block |
---|
{attachment-data:Name|include=<regular expression>|exclude=<regular expression>} |
Example One Attachment
...
Data
In this example and the next, because the reporting plugin is not installed, there would be a message that a macro is unknown. Therefore the examples are not shown.
Code Block |
---|
|| Image File: | {attachment-data:Image|include=.*gif,.*jpg} | || Image Display: | \{report-image:data:Image > reference:value > attachment:download path\} | |
Example Two Attachment
...
Data
Code Block |
---|
|| Image: | {hidden-data} {attachment-data:Image|include=.*gif,.*jpg} {hidden-data} \{report-image:data:Image > reference:value > attachment:download path\} | |
Example Three Attachment
...
Data
Code Block |
---|
{attachment-data:Any} |
...
The file in this example was selected from a list of attachments to this page.
Attachment
...
Options macro
The attachment - options macro generates a selectable list of attachments to the specified content, which by default is the current page.
...
Code Block |
---|
{list-data:List of Image Options|type=check|multiple=true} {attachment-options:content=Attachments and Scaffolding Macros|include=.*gif,.*jpg} {attachment-options:content=Attachments and Scaffolding Macros|include=.*png} {list-data} |
List Data | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
List Data | ||||||||||||
| .*gif,.*jpg
OLD EXAMPLE FROM WIKI MARKUP
| ||||||
Attachments and Scaffolding Macros | ||||||
Wiki Markup | ||||||
---|---|---|---|---|---|---|
Scrollbar | ||
---|---|---|
|