NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scrollbar
iconsfalse

...

Attachments and Scaffolding Macros

...

This page explains two macros as follows:

Table of Contents
minLevel52

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.

...

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

...

Image File:

Attachment Data
Image
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\}  |

Image:

Hidden Data

Attachment Data
Image
Image
include.*gif,.*jpg

{report-image:data:Image > reference:value > attachment:download path}

Example Three Attachment-data

Code Block
{attachment-data:Any}

Attachment Data
Any
Any

Attachment-options macro

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

...

List Data
List of Image Options
List of Image Options
multipletrue
typecheck

Attachments and Scaffolding Macros.*gif,.*jpg
Attachments and Scaffolding Macros.*png

Scrollbar
iconsfalse