set-data

{set-data}

Plugin: Scaffolding Plugin, from version 2.3-dr5

Allows entering of text in a single- or multiple-line text field.

Usage

{set-data:[Field Name]|type=[text/number/date/boolean/content/attachment/user|format=[date or number format]|hidden=[true/false]}Value{set-data}

Parameters

Name Required Default Description
[default]/name
The name of the field.
value
The value to set. You can alternatively use the body of the macro, which is useful if setting more complex wiki markup.
type
text

The type of field to display. May be one of the following:

  • text - (default) Text data.
  • number - An integer or decimal value.
  • date - A date.
  • boolean - A true/false value.
  • content - A link to a single Confluence page/news item. E.g. 'SPACEKEY:My Page' or just 'My Other Page'.
  • attachment - A link to a page/news item attachment. E.g. '^mypicture.jpg'.
  • user - A link to a registered user. This is their username, not their full name. E.g. 'joebloe' or 'administrator'.
format
The number format (e.g. '#,##0.00') or date format (e.g. 'dd MMM yyyy') to use when parsing the value being set. The parameter will be ignored for data types other than 'number' or 'date'. This is basically required when the data type is 'date', since the default date format is unlikely to be used when setting a date.
hidden
false
When set to 'true', the value being set will not be displayed to the page viewer.

See Also

Labels

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