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

Steve Swinsburg steve.swinsburg at gmail.com
Sat Nov 2 03:08:38 PDT 2013


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
>
>
>
> [image: Walk-to-End-Alzheimers-Logo_sm]
>
>
>
> ------------------------------
> ----------------------------------------- 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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131102/5a2de331/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 980 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131102/5a2de331/attachment.jpe 


More information about the sakai-dev mailing list