text-data

{text-data}

Plugin: Scaffolding Plugin

Allows editing of free text data.

Usage

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

Parameters

Name Required Default Description
[default]/name
The unique name of the text data field.
type
line
The type of field. May be one of the following:
  • line - (default) A single-line text field.
  • password - A single-line password field.
  • area - A multi-line text area field.

Note: Storing data with the 'password' type is not secure - it is not encrypted when stored. At best, it obscures the value when viewed on the screen.

content
wiki
The type of content in the field. May be one of the following:
  • wiki - (default) The content is wiki markup.
  • text - The content is plain text.
  • noformat - The content will appear inside a {noformat} section.
  • quote - The content will be quoted.
  • code:language - The content will be rendered as code, with an optional programming language such as Java or XML. E.g. 'content=code:JavaScript'. Whatever languages are valid for the {code} macro can be used.
minLength
If specified, the text must be at least this many characters long.
maxLength
If specified, the text must be at most this many characters long.
width
The width of the text field. E.g. '250px' or '100%'.
height
The height of the text field. E.g. '250px' or '100%'.
required
false
If true the field cannot be empty.
pattern
The regular expression the text must match. (Since 3.1.0)
patternInfo
If the pattern is specified, this is displayed if the saved value does not match it. (Since 3.1.0)

Examples

Login details

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

Large text area

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

See Also

Labels

macro macro Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.