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

Gradient Border Colors with CSS