User

These tags display data about the current connected user.

The <ion:user /> tag can also be used with the <ion:form /> tag to create login / register / profile edition forms.

Usage

<ion:user:logged is="true">

    <h2>User <ion:user:name /> logged in</h2>

    <!-- User -->
    <p>
        First name : <ion:user:firstname />
        Last name : <ion:user:lastname />
        Email : <ion:user:email />
        Birthdate : <ion:user:birthdate />
        Gender : <ion:user:gender />
    </p>

    <!-- Group information -->
    <p>
        Group : <ion:user:group:name />
        Group Title : <ion:user:group:title />
        Group Level : <ion:user:group:level />
    </p>


</ion:user:logged>


<!-- No user is logged in -->
<ion:user:logged is="false">

    <h2>User not logged in</h2>

</ion:user:logged>

User children tags

TagReturnsExample
<ion:logged /> Test tag on the "logged in" status of the user.
If logged in, displays the data between the open and closing tag.
<ion:user:logged is="true">
... display this ...
</ion:user:logged>
<ion:firstname /> User's first name
<ion:user:firstname />
<ion:lastname /> User's lastname
<ion:user:lastname />
<ion:name /> User's screen name (Choosen displayed name) or firtname + lastname if the screen name isn't set.
<ion:user:name />
<ion:email /> User's email address
<ion:user:email />
<ion:gender User's gender :
1 : Male
2 : Female
<ion:user:gender />
<ion:birthdate User's birthdate
<ion:user:birthdate format="d.m.Y" />
<ion:group /> Nothing.
Enclosing tag for the group sub tags.
<ion:group:name /> Name of the user's group
<ion:user:group:name />
<ion:group:level /> Level of the user's group
<ion:user:group:level />
<ion:group:title /> Title of the user's group
<ion:user:group:title tag="h3" />