NIH | National Cancer Institute | NCI Wiki  

WIKI MAINTENANCE NOTICE

Please be advised that NCI Wiki will be will be undergoing maintenance on Monday, June 24th between 1000 ET and 1100 ET.
Wiki will remain available, but users may experience screen refreshes or HTTP 502 errors during the maintenance period. If you encounter these errors, wait 1-2 minutes, then refresh your page.

If you have any questions or concerns, please contact the CBIIT Atlassian Management Team.

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

Form Fields Created with Scaffolding Macros

This section explains the following macros.

More information about the text data macro Exit Disclaimer logo

Date-data macro

The general form is:

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

An example follows.

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

The date data macro establishes the date, initially the date the macro was created. In the Edit Contents view select a different date.2011-Apr-04 00-00-00

Text-data macro

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

The general form is:

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

The following example shows how the general form is rendered.Default text.An example follows.

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

The following shows how the example is rendered. In the Edit Contents view, enter the username, password, and address.

Username:
Password:

Address:

Street,
City, State, Postcode
Country

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.

  • No labels