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&amp;" alt="Test Test" width="25">

Comments

Popular posts from this blog

CSS Equal Height Columns, Three Different Ways

The Simplest Way To Center Elements Vertically And Horizontally

User Avatar Image and User name and Email in LIferay Theme