Page History
Scrollbar | ||
---|---|---|
|
...
Page info | ||||
---|---|---|---|---|
|
This page explains two macros as follows:
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 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:
Code Block |
---|
:title} This page explains two macros as follows: {toc:minLevel=5} h5. 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: {code}{attachment-data:Name|include=<regular expression>|exclude=<regular expression>}{code} h6. Example One |
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.
Code Block |
---|
}|| Image File: | {attachment-data:Image|include=.*gif,.*jpg} | || Image Display: | \{report-image:data:Image > reference:value > attachment:download path\} |{code} || Image File: | { |
Image File: |
|
---|
...
|
...
|
...
|
...
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\} |{code} || |
Image: |
---|
...
|
...
|
...
|
...
|
...
|
...
...
> |
...
reference:value |
...
> |
...
attachment:download |
...
path} |
...
...
Example Three Attachment-data
...
Code Block |
---|
}{attachment-data:Any}{code} { |
Attachment Data |
---|
...
|
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:
Code Block |
---|
}{attachment-options:content=[content name]|include=<regular expression>|exclude=<regular expression>}{code} |
An
...
example
...
follows.
...
The
...
last
...
item
...
or
...
items
...
selected
...
appear
...
on
...
the
...
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}{code} { |
List Data |
---|
...
| ||||||||
...
|
Scrollbar | ||
---|---|---|
|