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

Gradient Border Colors with CSS

10 Useful Libraries and Resources for Responsive Web Design

The Simplest Way To Center Elements Vertically And Horizontally