User Check Tag

Aus Earthdawn-Wiki.v2
Version vom 22. Oktober 2024, 19:37 Uhr von Root (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Includes its body, if the user check validates. ---- ====Usage==== <wiki:UserCheck exists="true|false"> ; : ''JSP or HTML content'' </wiki:UserCheck> ====Parameters==== ; '''exists''' : If set to "true", then the content is included if there is a valid username; if set to "false", includes the content when there is no valid username. ====Example==== <pre><code> <wiki:UserCheck exists="true"> G'day,<wiki:UserName />…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

Includes its body, if the user check validates.


Usage

<wiki:UserCheck exists="true|false">

JSP or HTML content

</wiki:UserCheck>

Parameters

exists
If set to "true", then the content is included if there is a valid username; if set to "false", includes the content when there is no valid username.

Example

<code>
    <wiki:UserCheck exists="true">
        G'day,<wiki:UserName />
    </wiki:UserCheck>
    <wiki:UserCheck exists="false">
        Set your name in <wiki:LinkTo page="UserPreferences">UserPreferences</wiki:LinkTo>
    </wiki:UserCheck>
</code>

Displays a greeting, if the user has validated; else displays a link to the page UserPreferences.