Foros de discusión
Profile picture of all the users in Liferay.
Praful Shukla, modificado hace 7 años.
Profile picture of all the users in Liferay.
Junior Member Mensajes: 46 Fecha de incorporación: 29/09/15 Mensajes recientes
Hello Everyone,
I have created a portlet for employee information. Now I need to show the profile picture of each of the employee along with comment functionality.
I have used the following code :
<img src="<%=themeDisplay.getUser().getPortraitURL(themeDisplay)%>" >
But it is not working.
Does anyone have any idea how this can be achieved..??
I have created a portlet for employee information. Now I need to show the profile picture of each of the employee along with comment functionality.
I have used the following code :
<img src="<%=themeDisplay.getUser().getPortraitURL(themeDisplay)%>" >
But it is not working.
Does anyone have any idea how this can be achieved..??
Milen Dyankov, modificado hace 7 años.
RE: Profile picture of all the users in Liferay.
Expert Mensajes: 310 Fecha de incorporación: 30/10/12 Mensajes recientesthemeDisplay.getUser()
will give you the current user. You need to try something like this (pseudocode)foreach user in UserLocalServiceUtil.getUsers(...) {
<img src="<%=user.getPortraitURL(themeDisplay)%>">
}