DataZoom
Welcome User
See Also Send Feedback
Samples > Welcome User

Glossary Item Box

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

See Also

©2010 SharePoint Solutions. All Rights Reserved.