[Building Sakai] Display logged in user First Name in header area

Steve Swinsburg steve.swinsburg at gmail.com
Mon Nov 4 14:11:58 PST 2013


Hi Kim

Have a look in the HTML that is output. If it's not there, the portal may not be outputting it.

Cheers,
Steve

Sent from my iPad

> On 5 Nov 2013, at 4:39, "Wilson, Kimberly" <wilsonk at mail.amc.edu> wrote:
> 
> Hi Steve:
>  
> I added this to my sakai.properties:
>  
> # enable/disable user login information next to logout link
> display.userlogin.info=true
>  
> I restarted our tomcat server
>  
> But I do not see the login information next to the logout link as explained in this jira issue:
> https://jira.sakaiproject.org/browse/SAK-10492
>  
> Is there something else I need to do in the portal.css ?
>  
> Kim Wilson, MSCIS | Systems Analyst – IS Academic Systems | Albany Medical Center | 518-264-1055
>  
> <image002.jpg>
>  
> From: Steve Swinsburg [mailto:steve.swinsburg at gmail.com] 
> Sent: Saturday, November 2, 2013 6:09 AM
> To: Schauer, Christopher R
> Cc: sakai-dev; Wilson, Kimberly
> Subject: Re: [Building Sakai] Display logged in user First Name in header area
>  
> This is already possible. display.userlogin.info=true though you might need to customise the data here if you just want the first name.
> 
> Cheers
> Steve
> 
> sent from mobile device
> 
> On 02/11/2013 8:53 PM, "Schauer, Christopher R" <cschauer at txstate.edu> wrote:
> Hi Kim,
>  
> One possibility would be to add it in 'portal/portal-render-engine-impl/pack/src/webapp/vm/neoskin/site.vm'. That is the velocity file that is used to render the header area. The handler for that view is at 'portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/handlers/SiteHandler.java' and you can add the user's first name to the context there. The userId is in the session and you can use UserDirectoryService.getUser(userId) to get the User object for the current user.
>  
> -Chris
>  
> From: sakai-dev-bounces at collab.sakaiproject.org [sakai-dev-bounces at collab.sakaiproject.org] on behalf of Wilson, Kimberly [wilsonk at mail.amc.edu]
> Sent: Friday, November 01, 2013 3:31 PM
> To: sakai-dev at collab.sakaiproject.org
> Subject: [Building Sakai] Display logged in user First Name in header area
> 
> Hi:
>  
> I’ve been modifying our Sakai portal.css for our 2.9.3 upcoming release
>  
> I need to figure out how to display the logged in user’s first name in a Welcome message in the header of the page
>  
> Does anyone know how to do this?  Maybe with jQuery or Javascript?
>  
> I don’t know how to call the first name from the logged in user information.
>  
> Thanks!
>  
> Kim Wilson, MSCIS | Systems Analyst – IS Academic Systems | Albany Medical Center | 518-264-1055
>  
> <image003.jpg>
>  
> ----------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> ----------------------------------------- CONFIDENTIALITY NOTICE: This email and any attachments may contain confidential information that is protected by law and is for the sole use of the individuals or entities to which it is addressed. If you are not the intended recipient, please notify the sender by replying to this email and destroying all copies of the communication and attachments. Further use, disclosure, copying, distribution of, or reliance upon the contents of this email and attachments is strictly prohibited. To contact Albany Medical Center, or for a copy of our privacy practices, please visit us on the Internet at www.amc.edu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131105/4a4fa0ae/attachment.html 


More information about the sakai-dev mailing list