NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
{scrollbar:icons=false}

h1. Form Fields Created with Scaffolding Macros

This section explains the following macros.

{toc:minLevel=2}

[More information|http://www.customware.net/repository/display/AtlassianPlugins/text-data]

h2. Date-data macro

The date-data macro allows editing of dates in a series of drop-down boxes in the Edit view.

The general form is:
{code}
Scrollbar
iconsfalse

Form Fields Created with Scaffolding Macros

This section explains the following macros.

Table of Contents
minLevel2

More information

Date-data macro

The date-data macro allows editing of dates in a series of drop-down boxes in the Edit view.

The general form is:

Code Block
{date-data:Name|format=[date format]}[<FIXED DATE>, yesterday, today, tomorrow, now]{date-data}{code}

An example follows.

...



{code
}{date-data:MeetingDateTime|format=yyyy-MMM-dd HH-mm-ss}today{date-data}}{code}

{date-data

...

:MeetingDateTime

...

|format

...

=yyyy-MMM-dd HH-mm-ss

...

today
}today{date-data}


h2. Text-data macro

...



The text-data macro allows entering and editing free text in the Edit view.

...



The general form is:

...


{code
}
{text-data:Name|type=[line, area]}Default text.{text-data}

Username: {text-data:Username|width=100px}{text-data}
Password: {text-data:Password|type=password|width=100px}{text-data}

|| Address: | {text-data:Address|type=area|width=400px|height=150px}Street,
City, State, Postcode
Country{text-data} |
{code}

The following example shows the markup above as rendered with the type=line.

...



{text-data

...

:Name

...

|type

...

=line}Default text.{text-data}

Username: {text-data

...

:Username

...

|width

...

=100px}{text-data}
Password:

...

 {text-data

...

Address:

...

Warning
titleObservation about how the text-data macro works

It appears that once a value is specified for a text-data macro of the type line, it's not possible to edit that value. For example, once the page is saved with "Default text" in the text-data macro, it is not possible to change it to "Default name." This may also be the case for editing text-data of the type area.

...

:Password|type=password|width=100px}{text-data}

|| Address: | {text-data:Address|type=area|width=400px|height=150px}Street,
City, State, Postcode
Country{text-data}

{warning:title=Observation about how the text-data macro works}It appears that once a value is specified for a text-data macro of the type line, it's not possible to edit that value. For example, once the page is saved with "Default text" in the text-data macro, it is not possible to change it to "Default name." This may also be the case for editing text-data of the type area.{warning}

{scrollbar:icons=false}