Show the display name of the current users inside a welcome message. If no current user is present (anonymous access) an alternate message is displayed.
Syntax
| Welcome User | Copy Code |
|---|---|
|
<div style="padding:10px"> #if($user) Hello $user.Name, welcome back to the $web.Title site. #else Hello and welcome to the $web.Title site. #end </div> | |
Output
