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 38 Next »

Attachments and Scaffolding Macros

This page explains two macros as follows:

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 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:

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

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

Example Two Attachment-data

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

Example Three Attachment-data

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

The general form is:

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

An example follows. The last item or items selected appear on the page.

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

 

 

OLD EXAMPLE FROM WIKI MARKUPcaDSR_logo_90x.gif

  • No labels