public Function tag - current-user

Contents [-]
The function tags are developed by the WordFrame team. They can be used everywhere in the public site in HTML, javascripts, etc. and will be substituted with the real values when the HTML is rendered. Function tags can be inserted as:
{{ function_tag: parameter }}   or   {{ function_tag: parameter $|$ option_1 $|$ option_2 }}

Usage details for functional tag current-user

tag parameter (description) options (description) example
current-user email
presents the email of the current user account
option_1 ( text )
(not required) this value will be presented if no email is found (ex. there is no currently logged user)
{{ current-user: email }}
{{ current-user: email $|$ no email }}
current-user username
presents the username of the current user account
option_1 ( text )
(not required) this value will be presented if no username is found (ex. there is no currently logged user)
{{ current-user: username }}
{{ current-user: username $|$ guest user }}
current-user registered
presents the email of the current user account
option_1 ( date-time format string )
(required only if you want to use default value) the format should be according the asp.net date and time format standard (ex. dd-mm-YYYY hh:mm). If no format is provided, the current system one will be applied.
option_2 ( date-time value)
(not required) this value will be presented if no registration date is found (ex. there is no currently logged user).
{{ current-user: registered }}
{{ current-user: registered $|$ dd-mm-YYYY hh:mm:ss $|$ 31-12-2010 11:59:59 }}
Last edited by nadia on 26 Oct 2010 | Rev. 1 | This page is public | Views: 1
Comments: 0 | Filed under: root | Tags: