Fórum
Getting URL to user portrait from a web content template
Alain Dresse, modificado 12 Anos atrás.
Getting URL to user portrait from a web content template
Junior Member Postagens: 95 Data de Entrada: 18/07/11 Postagens Recentes
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
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, modificado 11 Anos atrás.
RE: Getting URL to user portrait from a web content template (Resposta)
Junior Member Postagens: 95 Data de Entrada: 18/07/11 Postagens Recentes
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()"
"/image/user_male_portrait?img_id=$user.getPortraitId()&t=$dateTool.getSystemTime()"
Syed Nasar, modificado 7 Anos atrás.
RE: Getting URL to user portrait from a web content template
Junior Member Postagens: 64 Data de Entrada: 03/09/15 Postagens Recentes
Hi,
In your URL, img_id_token parameter is missing. How you are fetching image?
In your URL, img_id_token parameter is missing. How you are fetching image?