1

For 6.1 there are solutions available to retrieve user profile pic like in this post, but how to get portrait image in Liferay 6.2?

Community
  • 1
  • 1
Himanshu Bhandari
  • 1,769
  • 2
  • 23
  • 37

1 Answers1

2

Earlier we required to concate some strings to create src, but now Liferay API provide the method i.e.

<img src="<%=themeDisplay.getUser().getPortraitURL(themeDisplay)%>" >

Thanks.

Himanshu Bhandari
  • 1,769
  • 2
  • 23
  • 37