Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: "liferay-ui:ratings" How to show names of people who liked.
Hello Everyone,
I am using liferay rating functionality as:
<liferay-ui:ratings className="<%=Post.class.getName()%>" classPK="<%=entry.getPrimaryKey()%>" type="like" />
Users can like and unlike the post. It displays number of users liked the post. I want to display the name of users also. Can anyone please tell me how to achieve this. I am working on Liferay DXP 7.2
Thanks in advance!
I am using liferay rating functionality as:
<liferay-ui:ratings className="<%=Post.class.getName()%>" classPK="<%=entry.getPrimaryKey()%>" type="like" />
Users can like and unlike the post. It displays number of users liked the post. I want to display the name of users also. Can anyone please tell me how to achieve this. I am working on Liferay DXP 7.2
Thanks in advance!
Hello All,
Any Suggestions on this?
Thanks and Regards
Any Suggestions on this?
Thanks and Regards
Upender Kashyap:
I expect that you'll have to implement such a listing by yourself. The tag that you mention displays a number, for the reason that displaying names would require paging for popular entries.
Users can like and unlike the post. It displays number of users liked the post. I want to display the name of users also. Can anyone please tell me how to achieve this. I am working on Liferay DXP 7.2
Liferay's API has RatingsEntryLocalService and the interface of RatingsEntryModel looks like you can retrieve a bunch of them. On the UI you'll have to decide what and how you'll display them.
Thanks for your reply Olaf!
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™