NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

This page explains two macros as follows:

Table of Contents
minLevel2

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 from the local drive. If there are attachments of the type specified, the Browse button macro offers the list of those attachments.

...

Code Block
{attachment-data:Any}

Attachment Data
nameAny

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
blankfalse
nameList of Image Options
multipletrue
typecheck
separatornewline
.*gif,.*jpg

 

.*png

 

 

 

OLD EXAMPLE FROM WIKI MARKUP

List Data
nameList of Image Options
multipletrue
separatornewline
Attachments and Scaffolding Macros.*gif,.*jpg

...

 Attachments and Scaffolding Macros.*png 
Wiki Markup
{scrollbar:icons=false}