FIELDHISTORY -- record the history of a formfield inside the topic text

The %FIELDHISTORY% variable is handled by the FieldHistoryPlugin

Parameters

Parameter Description Default
"..." Unnamed parameter is not used in this macro  
field Name of a formfield used in the topic ''
format Format of status update added when the formfield named defined by field changes. Use the parameter tokens listed below ''

Parameter Tokens in format="..." parameter

Name: Expands To:
$value The new value of the changed formfield. New lines in the formfield value are replace by an html break to preserve the viewed format of the formfield
$macro The FIELDHISTORY macro including all the parameters.
$date The current date in the format defined for the server
$time The current time in the format defined for the server
$wikiname The wikiname of the current user

  • In addition you can use all the standard format tokens with the format parameter. See below.

Standard Tokens for format parameter

Name: Expands To:
$n or $n() New line. Use $n() if followed by alphanumeric character, e.g. write Foo$n()Bar instead of Foo$nBar

TIP Most macros accept parameter strings which are split over multiple lines. This is usually more readable than using $n tokens. If you are familiar with sectional includes, you might also consider nested sectional includes to hold the newline content outside of the parameter string entirely.

TIP Note that newline is not a line break. The browser will wrap the lines together. If you require a line break, displaying the results on two lines, use %BR%. Or use two consecutive newlines to create a TML "Paragraph".

$nop or $nop() Is a "no operation". This token gets removed; useful for nested search
$quot Double quote (") (\" also works)
$percent Percent sign (%) ($percnt also works)
$dollar Dollar sign ($)
$lt Less than sign (<)
$gt Greater than sign (>)
$amp Ampersand (&)
$comma Comma (,)

Topic revision: r1 - 08 Dec 2015, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy