NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

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 looks on the local drive and allows attaching any file. If there are attachments of the type specified, the Browse button offers the list of those attachments.

The general form is:

{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 is a message that a macro is unknown.

|| Image File: | {attachment-data:Image|include=.*gif,.*jpg} |
|| Image Display: | {report-image:data:Image > reference:value > attachment:download path} |

Image File:

Image Display:

Unknown macro: {report-image}
Example Two Attachment Data
|| Image: | {hidden-data}
{attachment-data:Image|include=.*gif,.*jpg}
{hidden-data} {report-image:data:Image > reference:value > attachment:download path}  |

Image:

Unknown macro: {report-image}

Example Three Attachment Data
{attachment-data:Any}

Attachment-options macro

The attachment-options macro generates a selectable list of attachments to the specified content, by default, the current page.

General form:

{attachment-options:content=[content name]|include=<regular expression>|exclude=<regular expression>}

An example follows, with the markup followed by the rendered macro. There are no .png format files attached to this page, so that line of the macro is not rendered.

{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}

  • No labels