Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Alain Dresse
Getting URL to user portrait from a web content template
26 de febrero de 2012 0:01
Respuesta

Alain Dresse

Ranking: Junior Member

Mensajes: 77

Fecha de incorporación: 18 de julio de 2011

Mensajes recientes

Hi,

I have a userId from my portlet's service, and would like to display that user's portrait in my web content.
I thought about using User.getPortraitURL(ThemeDisplay themeDisplay), but there is no velocity access to themeDisplay in web content templates.

How do I get that user's portraitURL ?

Thanks,
Alain
Alain Dresse
RE: Getting URL to user portrait from a web content template
12 de julio de 2012 8:25
Respuesta

Alain Dresse

Ranking: Junior Member

Mensajes: 77

Fecha de incorporación: 18 de julio de 2011

Mensajes recientes

The following seems to work to get the portraitURL for a given user in a web content template:
"/image/user_male_portrait?img_id=$user.getPortraitId()&t=$dateTool.getSystemTime()"