Displaying User Image in VM File Liferay
To show the logged in user image in Velocity file(VM) use the following code.
<img src="/image/user_male_portrait?img_id=$user.portraitId&" alt="Test Test" width="25">
<img src="/image/user_male_portrait?img_id=$user.portraitId&" alt="Test Test" width="25">
Comments
Post a Comment