掲示板

Getting URL to user portrait from a web content template

thumbnail
12年前 に Alain Dresse によって更新されました。

Getting URL to user portrait from a web content template

Junior Member 投稿: 95 参加年月日: 11/07/18 最新の投稿
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
thumbnail
11年前 に Alain Dresse によって更新されました。

RE: Getting URL to user portrait from a web content template (回答)

Junior Member 投稿: 95 参加年月日: 11/07/18 最新の投稿
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()"
thumbnail
7年前 に Syed Nasar によって更新されました。

RE: Getting URL to user portrait from a web content template

Junior Member 投稿: 64 参加年月日: 15/09/03 最新の投稿
Hi,

In your URL, img_id_token parameter is missing. How you are fetching image?