Page History
Scrollbar | ||
---|---|---|
|
...
Form Fields Created with Scaffolding Macros
...
More information about the text data macro
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
Date
...
Data macro
The general form is:
Code Block |
---|
{date-data:Name|format=[date format]}[<FIXED DATE>, yesterday, today, tomorrow, now]{date-data} |
...
Date Data | ||||
---|---|---|---|---|
| ||||
today |
Text
...
Data macro
The text-data macro allows entering and editing free text in the Edit view.
...
Code Block |
---|
{text-data:Name|type=[line, area]}Default text.{text-data} |
The following example shows how the general form is rendered.
Text Data | ||||
---|---|---|---|---|
| ||||
Default text. |
An example follows.
Code Block |
---|
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 renderedtext data macros establish the Username, Password, and Address fields. In the Edit Contents view, enter the username, password, and address.
...
Address: |
|
---|
Warning | ||
---|---|---|
| ||
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. |
...
Scrollbar | ||
---|---|---|
|