<wiki:UserCheck status="known">
G'day,<wiki:UserName />
</wiki:UserCheck>
<wiki:UserCheck status="unknown">
Set your name in <wiki:LinkTo page="UserPreferences">UserPreferences</wiki:LinkTo>
</wiki:UserCheck>
Displays a greeting, if the user has either set a cookie or logged in; else displays a link to the page UserPreferences.
The behavior of this tag was significantly enhanced in 2.2. The old tag had the parameter "exists", which corresponds to the status parameter as follows:
Includes its body, if the user check validates.
Usage#
Parameters#
The possible values of "status" are:
In 2.0 there was an attribute called "exists". This is now deprecated, but it is still recognized. See below.
Example#
<wiki:UserCheck status="known"> G'day,<wiki:UserName /> </wiki:UserCheck> <wiki:UserCheck status="unknown"> Set your name in <wiki:LinkTo page="UserPreferences">UserPreferences</wiki:LinkTo> </wiki:UserCheck>Displays a greeting, if the user has either set a cookie or logged in; else displays a link to the page UserPreferences.
Notes#
The behavior of this tag was significantly enhanced in 2.2. The old tag had the parameter "exists", which corresponds to the status parameter as follows:
OLD
Replace withOLD
Replace with