Message Boards
"liferay-ui:ratings" How to show names of people who liked.
Upender Kashyap, modified 3 Years ago.
"liferay-ui:ratings" How to show names of people who liked.
Junior Member Posts: 30 Join Date: 8/12/20 Recent Posts
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!
Upender Kashyap, modified 3 Years ago.
RE: "liferay-ui:ratings" How to show names of people who liked.
Junior Member Posts: 30 Join Date: 8/12/20 Recent Posts
Hello All,
Any Suggestions on this?
Thanks and Regards
Any Suggestions on this?
Thanks and Regards
Olaf Kock, modified 3 Years ago.
RE: "liferay-ui:ratings" How to show names of people who liked.
Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent PostsUpender 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.
Upender Kashyap, modified 3 Years ago.
RE: "liferay-ui:ratings" How to show names of people who liked.
Junior Member Posts: 30 Join Date: 8/12/20 Recent Posts
Thanks for your reply Olaf!